question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing proper language field

See original GitHub issue

Bug report for Colab: http://colab.research.google.com/.

When I save a notebook in my local Jupyter Notebooks interface and explore the source, it has the following section:

"kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
}

On the other hand, when I download the .ipynb file from Colaboratory, this sections looks like this:

"kernelspec": { 
    "name": "python3", 
    "display_name": "Python 3" 
}

The problem with the latter is that many tools (such as notebook.js) rely on the language field to properly render the HTML which is needed for code highlighting etc.

For example, when I use nbpreview to preview my notebook saved from Colab,it will look like this:

<code class="lang-undefined" data-language="undefined">

Whereas, one saved from my local Jupyter Notebook will look like this:

<code class=" language-python" data-language="python">

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bloiscommented, Mar 18, 2021

The fix for this should be live now.

0reactions
MSealcommented, Mar 15, 2021

Thanks for taking a look!

Classic and nteract have 4.5 support now, with lab still having partial support (id’s save but get replaced on each save). I’ll poke on that issue to see if we can get that prioritized.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 Language Bar is missing - Microsoft Community
Right-click anywhere on the empty area in the right windowpane and select String Value under New. That will create a new file named...
Read more >
How To Fix Language Bar Missing from Taskbar in ... - YouTube
To fix language bar missing from taskbar in Windows 10, here are two methods:Method 1: Right click on the blank area of taskbar....
Read more >
Top 5 Fixes for Language Bar Missing in Windows 10
Click on Taskbar in the left windowpane and select Turn system icons on or off under Notification area on the right. Language Bar...
Read more >
2729839 - Label or Content of Report Field is Missing in Some ...
Symptom. You are using a report and notice that for some fields, the label is either missing or in the wrong language. Alternatively,...
Read more >
"Missing" language names due to spelling variation
... When referring to a language in a document, the au- thor should check whether the language is already listed in the most...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found