-
Notifications
You must be signed in to change notification settings - Fork 420
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nbformat/nbformat_minor not well extracted with HTTP handler #727
Labels
Comments
LetMeR00t
changed the title
Nbformat/nbformat_minor not well extracted
Nbformat/nbformat_minor not well extracted with HTTP handler
Jul 12, 2023
Fix working on my side: papermill/iorw.py
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
馃悰 Bug
I'm currently trying to create a connector between Jupyter (using papermill) and another product named "Cortex" from the Strangee project.
I encountered an issue during my development. I'm currently testing the HTTP handler by trying to execute a notebook located on a JupyterHub instance which has a "demo" user for who a "cortex_job" server is configured.
Everything is working fine to recover the notebook but I get an error message:
When looking into the code, we can see the HTTP handler way of working, which is getting the all response content:
Which gives:
As you can notice, the nbformat variable is set to 4 but papermill found out that it was 1 (default value).
This assumption is coming from here (under the library
nbformat
which is reading the notebook):As you can see, the version is taken from the root node "nbformat" instead of "content.nbformat" which is causing the issue.
Do you know if this a bug on your side or on the nbformat library maybe ? I tested it with a LocalHandler and it's working fine as the output is:
A solution could be to load the JSON answer and get the "content" node before returning the result in the HTTP handler
Thank you
The text was updated successfully, but these errors were encountered: