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édente | |||
| tech:install-ipython3 [2025/05/14 03:15] – Jean-Baptiste | tech:install-ipython3 [2025/05/14 03:22] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 54: | Ligne 54: | ||
| - | ## Docker-compose | ||
| - | Password less. | ||
| - | '' | ||
| - | ~~~yaml | ||
| - | 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: | ||
| - | ipython_work: | ||
| - | |||
| - | ~~~ | ||
| - | |||
| - | |||
| - | |||
| - | ## Install iPython sur Android Termux | ||
| - | |||
| - | ~~~bash | ||
| - | pkg update | ||
| - | pkg upgrade | ||
| - | pip install --user ipython | ||
| - | ~~~ | ||
| Ligne 160: | Ligne 121: | ||
| - | |||
| - | |||
| - | |||
| - | J'ai eu me même pb : | ||
| - | http:// | ||
| - | |||
| - | ~~~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 / | ||
| - | } | ||
| - | } | ||
| - | ~~~ | ||
| - | |||
| - | ~~~bash | ||
| - | cd | ||
| - | mkdir books | ||
| - | |||
| - | |||
| - | vim ipython_notebook_config.py | ||
| - | ~~~ | ||
| - | |||
| - | ~~~python | ||
| - | c = get_config() | ||
| - | |||
| - | c.IPKernelApp.pylab = ' | ||
| - | c.NotebookApp.open_browser = False | ||
| - | c.NotebookApp.port = 5001 | ||
| - | ~~~ | ||
| - | |||
| - | |||
| - | ~~~bash | ||
| - | vi / | ||
| - | crontab -e | ||
| - | @reboot cd ${HOME}/ | ||
| - | ~~~ | ||
tech/install-ipython3.1747185324.txt.gz · Dernière modification : de Jean-Baptiste
