calcoloscientifico:userguide:python
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisioneRevisione precedenteProssima revisione | Revisione precedente | ||
calcoloscientifico:userguide:python [27/08/2025 17:41] – fabio.spataro | calcoloscientifico:userguide:python [27/08/2025 18:13] (versione attuale) – fabio.spataro | ||
---|---|---|---|
Linea 11: | Linea 11: | ||
- python/ | - python/ | ||
- | ==== Python virtualenv ==== | + | ===== Python virtualenv |
[[https:// | [[https:// | ||
- | === Python 2.7.14 virtualenv === | + | ==== Python 2.7.14 virtualenv |
- | Create a virtual environment for "machine-learning": | + | Create a virtual environment for '' |
< | < | ||
Linea 31: | Linea 31: | ||
</ | </ | ||
- | Activate | + | Activate |
< | < | ||
Linea 37: | Linea 37: | ||
</ | </ | ||
- | Install packages in "machine-learning" | + | Install packages in '' |
< | < | ||
Linea 43: | Linea 43: | ||
</ | </ | ||
- | Deactivate | + | Deactivate |
< | < | ||
Linea 49: | Linea 49: | ||
</ | </ | ||
- | === Python 3.6.3 virtualenv === | + | ==== Python 3.6.3 virtualenv |
Available virtual environments for Python 3.6.3: | Available virtual environments for Python 3.6.3: | ||
Linea 56: | Linea 56: | ||
* tensorflow-gpu | * tensorflow-gpu | ||
- | == Site installation == | + | === Site installation |
- | Activate | + | Activate |
< | < | ||
Linea 69: | Linea 69: | ||
---- | ---- | ||
- | Activate | + | Activate |
< | < | ||
Linea 80: | Linea 80: | ||
---- | ---- | ||
- | Activate | + | Activate |
< | < | ||
Linea 99: | Linea 99: | ||
</ | </ | ||
- | == User installation == | + | === User installation |
- | Create | + | Create |
< | < | ||
Linea 110: | Linea 110: | ||
</ | </ | ||
- | Update | + | Update |
< | < | ||
Linea 119: | Linea 119: | ||
</ | </ | ||
- | Activate | + | Activate |
< | < | ||
Linea 130: | Linea 130: | ||
---- | ---- | ||
- | Create | + | Create |
< | < | ||
Linea 139: | Linea 139: | ||
</ | </ | ||
- | Update | + | Update |
< | < | ||
Linea 148: | Linea 148: | ||
</ | </ | ||
- | Activate | + | Activate |
< | < | ||
Linea 159: | Linea 159: | ||
---- | ---- | ||
- | Create | + | Create |
< | < | ||
Linea 168: | Linea 168: | ||
</ | </ | ||
- | Update | + | Update |
< | < | ||
Linea 177: | Linea 177: | ||
</ | </ | ||
- | Activate | + | Activate |
< | < | ||
Linea 196: | Linea 196: | ||
</ | </ | ||
- | === Python 3.6.8 virtualenv === | + | ==== Python 3.6.8 virtualenv |
- | == User installation == | + | === User installation === |
- | + | ||
- | Create '' | + | |
- | + | ||
- | < | + | |
- | mkdir -p " | + | |
- | python3 -m venv " | + | |
- | . " | + | |
- | python3 -m pip install --upgrade pip | + | |
- | python3 -m pip install --upgrade jupyter notebook ipyparallel | + | |
- | #python3 -m pip install --upgrade other_packages_for_my_project | + | |
- | deactivate | + | |
- | </ | + | |
- | + | ||
- | Update '' | + | |
- | + | ||
- | < | + | |
- | . " | + | |
- | python3 -m pip install --upgrade pip | + | |
- | python3 -m pip install --upgrade jupyter notebook ipyparallel | + | |
- | #python3 -m pip install --upgrade other_packages_for_my_project | + | |
- | deactivate | + | |
- | </ | + | |
Require a node with '' | Require a node with '' | ||
Linea 238: | Linea 216: | ||
</ | </ | ||
- | Activate | + | Create '' |
+ | |||
+ | < | ||
+ | mkdir -p "$HOME/ | ||
+ | python3 -m venv " | ||
+ | source " | ||
+ | python3 -m pip install --upgrade pip | ||
+ | python3 -m pip install --upgrade jupyter notebook ipyparallel | ||
+ | #python3 -m pip install --upgrade other_packages_for_my_project | ||
+ | deactivate | ||
+ | </ | ||
+ | |||
+ | Update '' | ||
+ | |||
+ | < | ||
+ | source " | ||
+ | python3 -m pip install --upgrade pip | ||
+ | python3 -m pip install --upgrade jupyter notebook ipyparallel | ||
+ | #python3 -m pip install --upgrade other_packages_for_my_project | ||
+ | deactivate | ||
+ | </ | ||
+ | |||
+ | Activate '' | ||
< | < | ||
- | . " | + | source |
</ | </ | ||
- | Start the Jupyter Notebook Server: | + | Start the '' |
< | < | ||
Linea 255: | Linea 255: | ||
Open another shell and run the following command: | Open another shell and run the following command: | ||
- | ssh -N -L 127.0.0.1: | + | ssh -N -L 127.0.0.1: |
To access the notebook, open in a browser the URL which starts with | To access the notebook, open in a browser the URL which starts with | ||
Linea 261: | Linea 261: | ||
</ | </ | ||
- | Stop the Jupyter Notebook Server: | + | Stop the '' |
Press '' | Press '' |
calcoloscientifico/userguide/python.1756309260.txt.gz · Ultima modifica: da fabio.spataro