vscode-jupyter
vscode-jupyter copied to clipboard
Support configuring default ipynb format or change to a new minimum version
Applies To
- [X] Notebooks (.ipynb files)
- [ ] Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
Whenever you are creating new .ipynb files, you will by default create the nbformat_minor version as 2. Can't seem to change this behaviour.
VS Code Version
1.71.0
Jupyter Extension Version
v2022.8.1002431955
Jupyter logs
No response
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
No response
Thanks for filing this issue, currently there's no way to change this.
- What would you like this changed to?
- Out of curiosity why do you want a different value?
Thanks for filing this issue, currently there's no way to change this.
- What would you like this changed to?
- Out of curiosity why do you want a different value?
I am using nbformat to read a notebook string into a NotebookNode and it is facing a validation problem (as given here). The fix is to change the minor version to 5. But when someone will author a new notebook, it will again be with minor version 2.
So ideally we want it to be changed to 5.
thanks, however I'm still struggling to understand this issue. please could you provide a sample code with instructions and with the versions of the packages used so i can repro this issue at my end
Sure!
Steps to repro this issue:
- Use nbformat 5.4.0 version
- Create a notebook with major version = 4 and minor version =2
- Call nbformat.read(...) on the notebook string and it will generate a Notebook JSON failed error
Please let me know if you need my help in the repro.
Please let me know if you need anymore info from my side.
Sorry, forgot to get back to you, thanks I'll take a look at this..
@DonJayamanne I see that something has been merged for this. Is it now possible to specify the nbformat version by default ?
Unfortunately we haven't fixed this yet.