-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
KeyError: 'nbformat' #94
Comments
I can't reproduce your problem, for me the notebook is correctly converted. What operating system are you using and whats your neovim and python version? If you want to debug this yourself, you can also go into the |
I will try to debug it as you say. Thanks. Here are the output you asked for in case it helps:
I am running python in a virtual env using pyenv. |
No, the other files are correctly converted. For example, it can convert this just fine. |
Ok, I found the problem. There is a bug which only occurs if the full path to the file contains whitespace. The directory name of the notebook I shared is this:
When I change "Fictitous Names" to "Fictitous_Names" everything works just fine. |
I am getting key error while trying to convert ipynb file to py file. The notebook file can be found here.
When I examine the file, I already see a line which looks like
"nbformat": 4,
so I have no idea why it can't find the key 'nbformat'. I also tried converting it withjupyter nbconvert --to notebook --nbformat 4 <FILENAME>
but nothing has changed.The text was updated successfully, but these errors were encountered: