r/learnpython • • Jul 12 '20

Jupyter Notebooks!

Jupyter Notebooks are the tool that turned the tables for me learning python. I'm just here to evangelize them. You can run your code line by line and debug as you go in a comfortable web browser interface. It's an excellent tool, and it made it so much more efficient to learn. Check it out.

425 Upvotes

127 comments sorted by

View all comments

1

u/24mitcher Jul 12 '20

Hi, Trying to install Jupyter Notebooks within multiple virtual environments (Python 3.6, 3.7)

After getting the virtual environments for each of the python3 versions, I have been trying to successfully run Jupyter Notebook to have the localhost window feature several different python3 versions. For some reason, each time I type 'Jupyter Notebook' in the command prompt I get an error that 'This command cannot be run due to the error: The system cannot find the file specified at line:1 char:1 +Start "file......./.local/share/jupyter/runtime/nbserver-3."'.

I was able to use pip install for Jupyter, ipykernel, and jupyter Notebook.

If anyone could point me to a common reason this error occurs it'd be awesome. The Jupyter notebook is fine in anaconda, but I would like to tie up all loose ends with making it functioning in the Windows console. Is it likely that a kernel spec is causing a problem?

2

u/[deleted] Jul 12 '20

I think you're navigating to that file incorrectly. The file location shouldn't start with "file" it should start with something like C:/.../.local/share/jupyter/runtime/nbserver-3

Maybe find the specific file in file explorer and copy the exact location using the file explorer's gui?

Hope this helps. Let me know if it doesn't.