Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Jupyter via command line on Windows

I have installed Jupyter on Windows 10, Python 3.x via

$ pip install jupyter 

The installation works fine, even though I did restart the terminal.

But trying to run

$ jupyter notebook 

gives the following error

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

How and where do I find the executable for Jupyter?

like image 945
eleijonmarck Avatar asked Dec 08 '16 08:12

eleijonmarck


People also ask

How do I run a script jupyter in terminal?

You can use the jupyter console -i command to run an interactive jupyter session in your terminal. From there you can run import <my_script.py> . Do note that this is not the intended use case of either jupyter or the notebook environment. You should run scripts using your normal python interpreter instead.

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.


1 Answers

If you are absolutely sure that your Python library path is in your system variables (and you can find that path when you pip install Jupyter, you just have to read a bit) and you still experience "command not found or recognized" errors in Windows, you can try:

python -m notebook 

For my Windows at least (Windows 10 Pro), having the python -m is the only way I can run my Python packages from command line without running into some sort of error

Fatal error in launcher: Unable to create process using ' " 

or

Errno 'THIS_PROGRAM' not found 
like image 75
user6094431 Avatar answered Sep 27 '22 19:09

user6094431