-
Notifications
You must be signed in to change notification settings - Fork 724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing proper language field #625
Comments
Thanks for the report! I'm a little wary about adding a language field, since it's not part of the notebook format: Do you know if the tools you're looking to use also respect the Also adding @rgbkrk as knower of all things nbformat, in case |
Thank you for your answer @craigcitro Yes, Just checked notebook.js source code and found this:
|
To revive this: this field is used for tools like This seems worth supporting. |
FYI there have been a couple reported issues trying to use papermill recently with colab notebooks that are missing this field (e.g. nteract/papermill#584). The |
I'll take a look into this. Cell ID support is in if you upload a notebook w/ v4.5, per jupyter/nbformat#189 (comment). An example if you want to give it a try is https://colab.research.google.com/gist/blois/161ecb9e8bc9ca8e9d1c277a0f6925fb/nbformat-4-5.ipynb - please let us know if there's anything unexpected. I don't imagine we'll switch to 4.5 until at least JLab and possibly classic gain support (jupyterlab/jupyterlab#9729). |
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. |
The fix for this should be live now. |
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:
On the other hand, when I download the
.ipynb
file from Colaboratory, this sections looks like this: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:
Whereas, one saved from my local Jupyter Notebook will look like this:
The text was updated successfully, but these errors were encountered: