Install IPython

Voir aussi :

bpython

ptpython

Notes xonsh - le shell Python

Debian

Install

#python3 -m pip install --user ipython sudo apt-get install python3-ipython

Lancement

python3 -m IPython

ou

/usr/bin/ipython3

#!/usr/bin/python3 # -*- coding: utf-8 -*- import re import sys from IPython import start_ipython if __name__ == "__main__": sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) sys.exit(start_ipython())

Alias

~/.bashrc

#export PATH="$PATH:$HOME/.local/bin" alias ipython='python3 -m IPython'

Docker-compose

Password less.

docker-compose.yml

version: '3.7' services: ipython: image: jupyter/base-notebook restart: unless-stopped # Warning : No password ! command: ["start-notebook.sh", "--NotebookApp.token=''","--NotebookApp.password=''"] environment: GRANT_SUDO: "no" user: root ports: - '127.0.0.1:8083:8888' volumes: - ipython_work:/home/jovyan/work networks: - ipython-net networks: ipython-net: name: ipython-net volumes: ipython_work:

Install iPython sur Android Termux

pkg update pkg upgrade pip install --user ipython

Old

Install de ipython sur Debian Wheezy :

Install ipython3 --pylab

Debian Wheezy n'incluant pas python3-matplotlib

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690906

apt-get install python3-pip python3-numpy python3-scipy apt-get build-dep python-matplotlib

Puis sous le compte de l'utilisateur voulant executer ipython3 --pylab

pip-3.2 install --user matplotlib

plop

Install de IPython3 Notebook

Voir :

http://www.scipy.org/install.htm

http://ipython.org/ipython-doc/stable/install/install.html

http://www.math.univ-paris13.fr/~cuvelier/mainsu23.html

En root :

apt-get install ipython3 ipython-qtconsole ipython3-notebook apt-get install python3-scipy python3-matplotlib python3-numpy apt-get install pandoc python3-tk python3-pandas python3-pip python3-nose python3-zmq python-pygments python3-jinja2 fonts-mathjax libjs-mathjax apt-get install python3-cairo python3-gi python3-gobject python3-pyqt4 python3-scipy python3-sip tix python3-tk-dbg

Install de sympy

sudo apt-get install python3-mpmath pip3 install --user sympy

Puis ipython3

from pylab import *
ipython3 notebook --pylab=inline --no-browser --profile=notebook

J'ai eu me même pb : http://stackoverflow.com/questions/22665809/how-to-configure-ipython-behind-nginx-in-a-subpath

server { listen 80; root /usr/share/nginx/www; index index.html index.htm index.php ; server_name notebook.mondomain.fr ; error_log /var/log/nginx/error-notebook.log; location / { proxy_pass http://localhost:5001; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; # WebSocket support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_read_timeout 86400; } location ^~ /static/ { alias /usr/share/ipython/notebook/static/; } }
cd mkdir books vim ipython_notebook_config.py
c = get_config() c.IPKernelApp.pylab = 'inline' # if you want plotting support always c.NotebookApp.open_browser = False c.NotebookApp.port = 5001
vi /etc/cron.allow crontab -e @reboot cd ${HOME}/books ; ipython3 notebook --pylab=inline --no-browser --profile=notebook >${HOME}/notebook.log 2>${HOME}/notebook.err