Jupyter Notebook - Install Python 2
EDITED I'm very new to python and have a probably super basic question. I've installed Jupyter Notebook by installing anaconda which includes python 3 by default. Now I want to use
Solution 1:
I had the same issue. You can try starting jupyter-notebook
from python2
$ python2 /path/to/jupyter-notebook
in my case running python2 /usr/bin/jupyter-notebook
fixed the issue.
shebang in my case
$ head -1 /usr/bin/jupyter-notebook#!/usr/bin/python3.4$
Solution 2:
Have you tried looking at the Jupyter Notebook homepage?
Just use
pip install jupyter
or
pip install jupyter --user
Solution 3:
I still don't know why it doesn't work, but i found out what worked instead. Using
conda create -n ipykernel_py2 python=2 ipykernel
activate ipykernel_py2
python -m ipykernel install --user
in the Anaconda Prompt added the option to open a python 2 notebook in the Jupyter Notebook. Also I can change the Kernel now to python 2.
Post a Comment for "Jupyter Notebook - Install Python 2"