
Estoy intentando utilizar el cuaderno ipython. Pero cuando ejecuto ipython notebook, aparece el siguiente error. Tengo ipython 2.7 y 3.3. Pero incluso así no puede detectar ipython 2.7. ¿Cómo puedo agregar la ruta sin eliminar las rutas anteriores?
ihn@cri8:/home/ihn/packages$ ipython notebook
Traceback (most recent call last):
File "/usr/local/bin/ipython", line 7, in <module>
from IPython import start_ipython
File "/usr/local/lib/python3.2/dist-packages/IPython/__init__.py", line 33, in <module>
raise ImportError('IPython requires Python version 2.7 or 3.3 or above.')
ImportError: IPython requires Python version 2.7 or 3.3 or above.
si escribo
$ which python
/usr/bin/python
$ python -V
Python 2.7.3
Puedo usar EXPORTAR = ruta $ruta. Pero en ese caso eliminará mis rutas anteriores en el archivo bashrc. ¿Cómo puedo agregar esta ruta?
Respuesta1
Ubuntu 20.04 y posteriores
Abra la terminal y escriba:
sudo apt instalar jupyter-notebook jupyter
Ubuntu 18.04 y posteriores
sudo apt instalar python3-notebook jupyter jupyter-core python-ipykernel
Para iniciar el servidor portátil, ejecute el siguiente comando:
jupyter notebook
Debería ver Jupyter Notebook abierto en su navegador web.
Abra la terminal y escriba:
sudo apt-get install ipython3 ipython3-notebook
Para iniciar el cuaderno HTML interactivo de Python 3, escriba:
ipython3 notebook
Para iniciar el cuaderno Python con un sistema de trazado en línea basado en Python (python-matplotlib):
ipython notebook --pylab
o para Python 3 y python3-matplotlib:
ipython3 notebook --pylab