jupyter / atom-notebook

[Deprecated] Jupyter Notebook, but inside Atom.
MIT License
306 stars 48 forks source link

No Running Jupyter session #36

Closed kescobo closed 8 years ago

kescobo commented 8 years ago

Having the same problem as #29 and tried the solutions listed there. Using a miniconda3 build of python3 on latest version of OSX. Have path to jupyter set in settings and init script. Here's the info from dev console:

/Users/KBLaptop/.atom/packages/jupyter-notebook/lib/notebook-editor.js:348 kernelGateway.stderr [KernelGatewayApp] The Jupyter Kernel Gateway is running at: http://localhost:8895

/Users/KBLaptop/.atom/packages/jupyter-notebook/lib/notebook-editor.js:348 kernelGateway.stderr [KernelGatewayApp] WARNING | Native kernel (python3) is not available

/Users/KBLaptop/.atom/packages/jupyter-notebook/node_modules/jupyter-js-services/lib/kernel.js:106 Uncaught (in promise) Error: Invalid KernelSpecs Model(…)

/Users/KBLaptop/.atom/packages/jupyter-notebook/lib/notebook-editor.js:77 Action 'Symbol(run_active_cell)'received in NotebookEditor
gnestor commented 8 years ago

Have you confirmed that the python3 kernel is installed? What do you see when you run jupyter kernelspec list?

If you don't see python3, try running

pip3 install ipykernel
python3 -m ipykernel.kernelspec --user

http://stackoverflow.com/a/28840041/2217533

kescobo commented 8 years ago
Kbonham:~ KBLaptop$ jupyter kernelspec list
Available kernels:
  python3      /Users/KBLaptop/miniconda3/lib/python3.5/site-packages/ipykernel/resources
  julia-0.5    /Users/KBLaptop/Library/Jupyter/kernels/julia-0.5
kescobo commented 8 years ago

I tried your solution -

KBonham:~ KBLaptop$ python -m ipykernel.kernelspec --user
Installed kernelspec python3 in /Users/KBLaptop/Library/Jupyter/kernels/python3

Now

KBonham:~ KBLaptop$ jupyter kernelspec list
Available kernels:
  julia-0.5    /Users/KBLaptop/Library/Jupyter/kernels/julia-0.5
  python3      /Users/KBLaptop/Library/Jupyter/kernels/python3

And I set the path to jupyter binary to /Users/KBLaptop/miniconda3/bin/jupyter, and this seems to work.

gnestor commented 8 years ago

It appears that jupyter was not looking inside your miniconda directory. You can check jupyter's path's using jupyter --paths