-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
jupyter run notebook.ipynb
does not work
#7025
Comments
Thanks @charmoniumQ for opening the issue. Looks like this command might be coming from the |
Actually Maybe the docs on https://github.com/jupyter/jupyter should also be updated. |
So the docs should say |
Yes, they should. @palewire made the change from |
Closing this issue in favor of the issue above which in the Jupyter pository. |
Description
Docs say that
jupyter run notebook.ipynb
will execute the notebook. It appears that Jupyter is instead trying to evaluate the JSON contents ofnotebook.ipynb
. In more complex notebooks, I will get"true" is not defined
or"null" is not defined
on a specific line of the notebook which contains JSONtrue
ornull
.Reproduce
Source code
notebook.ipynb
which writes a file calledhello
.pip install notebook
jupyter run notebook.ipynb
ls -l
and see thathello
does not exist.Jupyter did not actually execute the notebook. In notebooks with null execution counts, I will git
"null" is not defined
on that line, which seems to indicate that jupyter is simply evaluating the file as a Python expression (which it is not).Expected behavior
jupyter run notebook.ipynb
should actually execute the notebook or change the documentation to not advertise this functionality.Context
Troubleshoot Output
jupyter run --debug
The text was updated successfully, but these errors were encountered: