Jupyter From Cmd Line in Windows

2019-02-21 10:28发布

问题:

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?

回答1:

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



回答2:

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.



回答3:

For future reference: the first hurdle of starting with Python is to install it. I downloaded the Anaconda 4.4 for Windows, Python 3.6 64-bit installer.

After sorting the first hurdle of updating the "path" Environmental Variable, and running (at the Python prompt) "import pip", all the instructions I found to install the IPython Notebook generated errors. Submitting the commands "ipython notebook" or "jupyther notebook" from the Windows Command Prompt or the Python prompt generated error messages.

Then I found that the Anaconda installation consists of a host of applications, on of them being the "Jupyter Notebook" application accessible from the Start menu. This application launch (first a shell, then) a browser page.

The application points to a shortcut in , a directory set during the Anaconda installation. The shortcut itself refers to a few locations.

Ready for next hurdle.



回答4:

Go to Anaconda Command Prompt and type jupyter notebook and wait for 30 seconds. You can see that your local host site will automatically open.