Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open .ipynb in browser from command line

How do I open a .ipynb file in the browser from the command line? I've tried:

$ jupyter my_notebook.ipynb 

But I get the cryptic:

Error executing Jupyter command 'my_notebook.ipynb': [Errno 2] No such file or directory

It's weird because that file exists (and is readable) as named.

I'm running:

$ jupyter --version
4.4.0
like image 722
Tom Hale Avatar asked Mar 05 '18 14:03

Tom Hale


People also ask

How do I open a Jupyter Notebook in browser?

Double-click on the Jupyter Notebook desktop launcher (icon shows [IPy]) to start the Jupyter Notebook App. The notebook interface will appear in a new browser window or tab. A secondary terminal window (used only for error logging and for shut down) will be also opened.

How do I open Jupiter notebook in CMD?

Windows File Explorer + Command Prompt Once you've entered your specific folder with Windows Explorer, you can simply press ALT + D, type in cmd and press Enter. You can then type jupyter notebook to launch Jupyter Notebook within that specific folder.


1 Answers

You can open a named .ipynb file by running either:

  • jupyter notebook my_notebook.ipynb
  • jupyter-notebook my_notebook.ipynb

The only difference between the two is the hyphen.

I have reported the poor error message in the question in this issue.

like image 89
Tom Hale Avatar answered Sep 22 '22 14:09

Tom Hale