-
Notifications
You must be signed in to change notification settings - Fork 90
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
Nbformat.current is deprecated #53
Conversation
It still need to be tested on IPython < 3.0. I think it will not work because it will not find the |
It is not passing the tests on IPython 2.x series.
|
About the error I mentioned above, I get the same thing when testing the master branch. So it could be some problem in my computer. Checking the error output again, it seems related to some strings been tagged as unicode. |
If #54 is true, may this is not neccessary anymore.... |
Could you please rebase these changes on the current master? |
@jakirkham done. Please note that it still does not support version 4 of the notebooks. |
Thanks @gabraganca. Also, thanks for fixing up the tests. This looks generally good to me. I'll take a closer look later. I made a couple of minor comments. |
@jakirkham you're welcome. I just checked your comments and made the changes. |
@jakirkham If you are deprecating IPython 2.0 (#78), maybe it would be better to not accept this PR. What do you think? |
nb = read(payload, 'json') | ||
try: | ||
# Ipython 3 | ||
nb = read(payload, '3') |
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.
Should be an int
. ( https://ipython.org/ipython-doc/3/api/generated/IPython.nbformat.html#IPython.nbformat.reads ) Probably good to be consistent, as well.
IPython.nbformat.current has been deprecated. The arguments passed to function `read` changed in IPython 3.0. It now asks for the notebook version. The new version is v4. If the user is using IPython < 3, it loads the notebook as before. If it is 3.0 or greater, it will load the notebook as format v3. I tried to load as v4, but its format different and more work is needed.
I see your point, @gabraganca. However, I think this is a harmless enough change that I am in favor of it. Though I do favor deprecating an old and no longer actively maintained version of iPython. If there are |
Nbformat.current is deprecated
...and it's in. Thanks again @gabraganca. |
👍 Thanks. |
This fix the warning that is thrown when
runipy
is loaded.The version of the notebook changed to 4 with IPython 3.0.0. The format of the previous notebook and this new one is different. When the user is using IPython 3.0,
runipy
will load the notebook as version 3 and not 4. I think this PR can help on this.