Open mzarei opened 4 years ago
I believe this is the same issue as #160 with the same resolution path.
I believe this is the same issue as #160 with the same resolution path.
Actually, I already check that. But unfortunately, I don't understand the solution! I am not able to save the notebook as it shows the error. So, I don't know how to update it's metadata correctly!
So, no idea where I can change these values or check it:
"version_major": 2, "version_minor": 0
If you load the notebook in jupyter lab instead of jupyter classic it should upgrade the file format for you. Otherwise, you can try editing the ipynb notebook with a text editor and changing the version line referenced by hand (this may work, but if there's structural differences your notebook won't load either).
Worse case, install an older version of nbformat, copy the cell contents to a new new notebook, save the new notebook, upgrade nbformat back, and replace the old file with the new one.
I failed to open the notebook in jupyter lab, as after I installed jupyterlab using the terminal in my jupyter hub, nothing worked! When I run jupyter lab
in the jupyter hub terminal it didn't open the browser! I assume because I install the jupyter hub in a different server, but it was trying to load it like as a localhost! The I got error 500 internal server error after installing jupyterlab
when I tried to open any notebook. I had to run this command pip3 install --upgrade --user nbconvert
to fix things. About jupyter lab, I feel I am making a silly mistake, which I haven't sort out yet!
Anyway, long story short, replacing "nbformat_minor": 1
with "nbformat_minor": 4
manually fixed the issue. Now I don't get the error and I can save the notebook or print it as a pdf.
Thanks :)
As a short-term workaround, you could downgrade your nbformat
to <5
by running the following conda command:
conda install "nbformat <5"
@mzarei Changing "nbformat_minor": 1
to"nbformat_minor": 4
resolved the same issue for me. Thanks.
@youweiliang's answer did the trick for me. To open ipynb file as a text file in VS Code I used this answer from SO.
I did Duplicate from the Home page / notebook list, and the duplicate passed validation, so this solved my issue.
Hi @MSeal I was facing a similar issue. Updating the notebook nbformat_minor version to 5 fixed it for me.
Can you please explain why this was happening and why this fixes the issue?
Thanks a lot in advance.
I am getting following error over and over and have no idea what causes it!
Notebook validation failed: {'model_id': '59d3b150e8eb4e44b6c0ce0030dfc2b7', 'version_major': 2, 'version_minor': 0} is not valid under any of the given schemas: { "model_id": "59d3b150e8eb4e44b6c0ce0030dfc2b7", "version_major": 2, "version_minor": 0 }
I see following details when I run this command:
jupyter-jupyadmin@labs:~$ conda list
Also, checking the notebook metadata I see following information: