-
Notifications
You must be signed in to change notification settings - Fork 5
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
[CIVP-18964] Update Notebook Package Version #50
Conversation
# for versions of jupyter before 5.7.5 we need to specify tornado<6 | ||
# as these older versions of jupyter will break with tornado 6 | ||
notebook==6.0.0 ; python_version >= '3.5' | ||
notebook==5.7.8 ; python_version < '3.0' |
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.
So why the two different versions now?
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.
According to the notebook package changelog, the 6.0.0
release fixes the issue with the 500 error on downloading a notebook in ipynb
format. I can't direct link the line, but in the notes for 6.0.0
it mentions "Respect nbconvert entrypoints as sources for exporters", which was causing the 500.
Apparently nbconvert
in 5.7.8
works fine for Python2 ¯_(ツ)_/¯
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.
Ohh, so fixing the 500 error requires 6.0.0 on python3? Interesting. Is there any reason to keep python2 on 5.7.8? If we're bumping one, it seems like we might as well bump the other
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.
IIRC there was an issue with python 2 and 6.0.0 but I’ll double check just to make sure
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.
They actually dropped support for python2 in 6.0.0
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.
😆 😭 Wonder when we'll be able to drop support for it... Can we add a comment explaining why 5.7.8 is needed for python2? Otherwise I think future us may keep trying to upgrade it.
@@ -28,7 +28,7 @@ def find_and_install_requirements(requirements_path, c): | |||
|
|||
def config_jupyter(c): | |||
# Jupyter Configuration | |||
c.NotebookApp.ip = '*' | |||
c.NotebookApp.ip = '0.0.0.0' |
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.
What are the reasons for/consequences of this change?
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 change is necessary to fix this error when starting the notebook image: ValueError: '' does not appear to be an IPv4 or IPv6 address
(this bug is referenced in the JIRA ticket)
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.
Right, we've run into that error before, but there was supposed to be a fix introduced in 5.7.8. Does that fix not actually work, or is it not included in 6.0.0?
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.
I don't think the fix completely works. On the python2 notebook, when I change the value back to *
, I get a different error:
socket.gaierror: [Errno -2] Name or service not known
The change above fixes this for python2 and doesn't seem to affect the other notebooks.
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.
Ahh, that's too bad. 😞 Okay then.
@leanne73 Let me know if I answered your questions or if you need some clarification, either here or offline. Thanks! |
@leanne73 Does this PR look ready for release? |
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.
Looks pretty good - one request though: Can we add a comment explaining why 5.7.8 is needed for python2? (i.e. that 6.0.0 drops support for python 2) Otherwise I think future us may keep trying to upgrade it.
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.
LGTM
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.
LGTM
This PR updates the notebook package version to 5.7.8 for Python 2 and to 6.0.0 for Python 3 (in order to fix, among other things, the 500 error when trying to download a notebook as an ipynb file)