tech:install-ipython3
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:install-ipython3 [2025/03/31 14:04] – Jean-Baptiste | tech:install-ipython3 [2025/05/14 03:22] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | {{tag> | + | < |
| + | {{tag> | ||
| - | = Install IPython | + | # Install IPython |
| Voir aussi : | Voir aussi : | ||
| - | * bpython | + | |
| - | * ptpython | + | * ptpython |
| - | * [[Notes xonsh - le shell Python]] | + | * [[Notes xonsh - le shell Python]] |
| + | Voir aussi : | ||
| + | * Scilab | ||
| + | * SageMath | ||
| + | * Matlab | ||
| - | == Debian | + | ## Debian |
| Install | Install | ||
| - | < | + | ~~~bash |
| #python3 -m pip install --user ipython | #python3 -m pip install --user ipython | ||
| sudo apt-get install python3-ipython | sudo apt-get install python3-ipython | ||
| - | </ | + | ~~~ |
| Lancement | Lancement | ||
| - | < | + | ~~~bash |
| python3 -m IPython | python3 -m IPython | ||
| - | </ | + | ~~~ |
| ou | ou | ||
| - | <file python | + | '' |
| + | ~~~python | ||
| # | # | ||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
| Ligne 34: | Ligne 40: | ||
| sys.argv[0] = re.sub(r" | sys.argv[0] = re.sub(r" | ||
| sys.exit(start_ipython()) | sys.exit(start_ipython()) | ||
| - | </ | + | ~~~ |
| Alias | Alias | ||
| - | <code bash ~/.bashrc> | + | |
| + | '' | ||
| + | ~~~bash | ||
| #export PATH=" | #export PATH=" | ||
| alias ipython=' | alias ipython=' | ||
| - | </ | + | ~~~ |
| - | == Docker-compose | ||
| - | Password less. | ||
| - | <code yaml docker-compose.yml> | ||
| - | version: ' | ||
| - | services: | ||
| - | ipython: | ||
| - | image: jupyter/ | ||
| - | restart: unless-stopped | ||
| - | # Warning : No password ! | ||
| - | command: [" | ||
| - | environment: | ||
| - | GRANT_SUDO: " | ||
| - | user: root | ||
| - | ports: | ||
| - | - ' | ||
| - | volumes: | ||
| - | - ipython_work:/ | ||
| - | networks: | ||
| - | - ipython-net | ||
| - | networks: | ||
| - | ipython-net: | ||
| - | name: ipython-net | ||
| - | volumes: | + | ## Old |
| - | ipython_work: | + | |
| - | </ | + | ### Install de ipython sur Debian Wheezy : |
| - | + | ||
| - | == Install iPython sur Android Termux | + | |
| - | + | ||
| - | <code bash> | + | |
| - | pkg update | + | |
| - | pkg upgrade | + | |
| - | pip install --user ipython | + | |
| - | </ | + | |
| - | + | ||
| - | == Old | + | |
| - | + | ||
| - | == 1) Install de ipython sur Debian Wheezy : | + | |
| Install '' | Install '' | ||
| Ligne 95: | Ligne 68: | ||
| https:// | https:// | ||
| - | < | + | ~~~bash |
| apt-get install python3-pip python3-numpy python3-scipy | apt-get install python3-pip python3-numpy python3-scipy | ||
| apt-get build-dep python-matplotlib | apt-get build-dep python-matplotlib | ||
| - | </ | + | ~~~ |
| - | Puis sous le compte de l' | ||
| - | < | + | |
| + | Puis sous le compte de l' | ||
| + | |||
| + | ~~~bash | ||
| pip-3.2 install --user matplotlib | pip-3.2 install --user matplotlib | ||
| - | </ | + | ~~~ |
| + | |||
| - | == 2) Install de IPython3 Notebook | ||
| - | http:// | + | ### Install de IPython3 Notebook |
| - | http:// | ||
| - | http:// | + | Voir : |
| + | * http:// | ||
| + | * http:// | ||
| + | * http:// | ||
| En root : | En root : | ||
| - | < | + | ~~~bash |
| apt-get install ipython3 ipython-qtconsole ipython3-notebook | apt-get install ipython3 ipython-qtconsole ipython3-notebook | ||
| apt-get install python3-scipy python3-matplotlib python3-numpy | 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 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 | apt-get install python3-cairo python3-gi python3-gobject python3-pyqt4 python3-scipy python3-sip tix python3-tk-dbg | ||
| - | </ | + | ~~~ |
| Install de sympy | Install de sympy | ||
| - | < | + | ~~~bash |
| sudo apt-get install python3-mpmath | sudo apt-get install python3-mpmath | ||
| pip3 install --user sympy | pip3 install --user sympy | ||
| - | </ | + | ~~~ |
| Puis | Puis | ||
| ipython3 | ipython3 | ||
| - | < | + | ~~~python |
| from pylab import * | from pylab import * | ||
| - | </ | + | ~~~ |
| - | < | + | |
| + | ~~~bash | ||
| ipython3 notebook --pylab=inline --no-browser --profile=notebook | ipython3 notebook --pylab=inline --no-browser --profile=notebook | ||
| - | </ | + | ~~~ |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | J'ai eu me même pb : | + | |
| - | http:// | + | |
| - | + | ||
| - | <code nginx> | + | |
| - | server { | + | |
| - | listen 80; | + | |
| - | root / | + | |
| - | index index.html index.htm index.php ; | + | |
| - | + | ||
| - | server_name notebook.mondomain.fr ; | + | |
| - | + | ||
| - | error_log / | + | |
| - | + | ||
| - | + | ||
| - | location / { | + | |
| - | proxy_pass http:// | + | |
| - | + | ||
| - | 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 " | + | |
| - | proxy_read_timeout 86400; | + | |
| - | } | + | |
| - | + | ||
| - | location ^~ /static/ { | + | |
| - | alias / | + | |
| - | } | + | |
| - | } | + | |
| - | </ | + | |
| - | + | ||
| - | <code bash> | + | |
| - | cd | + | |
| - | mkdir books | + | |
| - | + | ||
| - | + | ||
| - | $ vim ipython_notebook_config.py | + | |
| - | </ | + | |
| - | + | ||
| - | <code ini> | + | |
| - | c = get_config() | + | |
| - | + | ||
| - | c.IPKernelApp.pylab = ' | + | |
| - | c.NotebookApp.open_browser = False | + | |
| - | c.NotebookApp.port = 5001 | + | |
| - | </ | + | |
| - | <code bash> | ||
| - | vi / | ||
| - | crontab -e | ||
| - | @reboot cd ${HOME}/ | ||
| - | </ | ||
tech/install-ipython3.1743422644.txt.gz · Dernière modification : de Jean-Baptiste
