Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter From Cmd Line in Windows

Tags:

I cannot get jupyter running from my Command line using:

jupyter notebook

jupyter is not recognised as an internal or external command, operable program or batch file'

But I can get it running from pycharm (slick but with issues). When I take the kernel's IP and Port from pycharm and paste it into my browser I can get it running from there.

I cannot use anaconda because of Arcpy, and I have dug around the jupyter files for some hints.

I'm assuming I need to add something to my path?

like image 639
Kat Gunion Avatar asked Feb 01 '16 15:02

Kat Gunion


People also ask

How do I run a Jupyter Notebook in Windows command line?

To launch Jupyter Notebook App: Click on spotlight, type terminal to open a terminal window. Enter the startup folder by typing cd /some_folder_name . Type jupyter notebook to launch the Jupyter Notebook App The notebook interface will appear in a new browser window or tab.

Why can't I open Jupyter Notebook from command line?

Jupyter fails to start If you're using a menu shortcut or Anaconda launcher to start it, try opening a terminal or command prompt and running the command jupyter notebook . If it can't find jupyter , you may need to configure your PATH environment variable.


2 Answers

Open cmd and type:

where jupyter 

The output should be a link to Jupyter. If where jupyter doesn't give a link that means the PATH doesn't contain its location.

Add the link of Jupyter to PATH & it would work.

Also if you have ipython & have upgraded, try ipython notebook on cmd.

Refer: Running the Jupyter Notebook

like image 193
Ani Menon Avatar answered Sep 23 '22 02:09

Ani Menon


Try to open it using the Anaconda Prompt. Just type jupyter notebook and press Enter.

Anaconda Prompt has existed for a long time and is the correct way of using Anaconda. May be you have a broken installation somehow.

Try this, if the above doesn't work-

In the Command Prompt type,

pip3 install jupyter if you're using Python3

Else, if you are using Python2.7 then type pip install jupyter.

...Some installation should happen...

Now retry typing jupyter notebook in the CMD, it should work now.

like image 20
Amitrajit Bose Avatar answered Sep 23 '22 02:09

Amitrajit Bose