My Jupyter
notebooks installed with python 2
kernel. I do not understand why. I might have messed something up when I did the install. I already have python 3
installed. How can I add it to Jupyter
?
Here's a screenshot of what the default Jupyter
insalled with python3 -m install jupyter
and opened in the browser with jupyter notebook
looks like:
相关问题
- Access IPython's profile history (history.sqli
- Requests.get showing different HTML than Chrome
- tf.enable_eager_execution must be called at progra
- ipywidgets widgets values not changing
- Pandas and NumPy default width change on startup
相关文章
- cython in jupyter notebook
- python: ignoring leading “>>>” and “…” in interact
- Pyspark error: Java gateway process exited before
- Vim key map in jupyter notebook
- how to print source code of object I defined use
- IPython won't start
- How can the terminal in Jupyter automatically run
- Jupyter Notebook doesn't show new environments
pip install -U jupyter
pip3 install jupyter
ipython3 kernelspec install-self
None of the other answers were working for me immediately on ElementaryOS Freya (based on Ubuntu 14.04); I was getting the
error that quickbug described under Matt's answer. I had to first do:
sudo apt-get install pip3
, thensudo pip3 install ipython[all]
At that point you can then run the commands that Matt suggested; namely:
ipython kernelspec install-self
andipython3 kernelspec install-self
Now when I launch
ipython notebook
and then open a notebook, I am able to select the Python 3 kernel from the Kernel menu.I am pretty sure all you have to do is run
pip3 install jupyter
This worked for me on Ubuntu 16.04:
Reference to the documentation:
Kernels for Python 2 and 3. Installing the IPython kernel - IPython Docs.
I successfully installed python3 kernel on macOS El Capitan (ipython version: 4.1.0) with following commands.
You can see all installed kernels with
jupyter kernelspec list
.More info is available here