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
backport nbformat v4 to 2.x #6778
Conversation
I think it also needs to be added to the dict of versions in |
Yup, I'm working on this now. A few shims need to be added, and I'm including some basic tests. |
c951181
to
eb4dd70
Compare
reading v4 notebooks in 2.x appears to be working fine now |
👍 |
with self.fopen(u'test4.ipynb', u'r') as f: | ||
nb = read(f, u'json') | ||
|
||
# Check that the notebook was upgraded to the latest version automatically. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment is misleading - it's downgrading from the latest format to the current version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, missed that in copy/paste. Fixed.
The first commit should have no changes to individual files, just |
- add v4 to reader - validation is not backported - update some tests to reflect this - test opening v4 notebooks
in notebook.js dialogs, which can now be triggered by nbformat 4 from the future.
Check out nbformat v4 for 2.x
still to do: