Skip to content
Snippets Groups Projects
Commit 87bdfa97 authored by Elias Werner's avatar Elias Werner
Browse files

fix linter errors

parent 2fd6e83c
No related branches found
No related tags found
5 merge requests!333Draft: update NGC containers,!322Merge preview into main,!319Merge preview into main,!279Draft: Machine Learning restructuring,!258Data Analytics restructuring
...@@ -25,7 +25,7 @@ conda manager is included in all versions of Anaconda and Miniconda. ...@@ -25,7 +25,7 @@ conda manager is included in all versions of Anaconda and Miniconda.
## Python Virtual Environment ## Python Virtual Environment
This example shows how to start working with **virtualenv** and Python virtual environment (using This example shows how to start working with **virtualenv** and Python virtual environment (using
the module system). the module system).
??? hint ??? hint
We recommend to use [workspaces](../../data_lifecycle/workspaces) for your virtual environments. We recommend to use [workspaces](../../data_lifecycle/workspaces) for your virtual environments.
......
...@@ -43,7 +43,7 @@ marie@ml$ module load TensorFlow ...@@ -43,7 +43,7 @@ marie@ml$ module load TensorFlow
Module TensorFlow/2.3.1-fosscuda-2019b-Python-3.7.4 and 47 dependencies loaded. Module TensorFlow/2.3.1-fosscuda-2019b-Python-3.7.4 and 47 dependencies loaded.
``` ```
Now we can use TensorFlow. In the following example, we create a python virtual environment and Now we can use TensorFlow. In the following example, we create a python virtual environment and
import TensorFlow: import TensorFlow:
!!! example !!! example
...@@ -51,12 +51,12 @@ import TensorFlow: ...@@ -51,12 +51,12 @@ import TensorFlow:
marie@ml$ ws_allocate -F scratch python_virtual_environment 1 marie@ml$ ws_allocate -F scratch python_virtual_environment 1
Info: creating workspace. Info: creating workspace.
/scratch/ws/1/python_virtual_environment /scratch/ws/1/python_virtual_environment
[...] [...]
marie@ml$ which python #check which python are you using marie@ml$ which python #check which python are you using
/sw/installed/Python/3.7.2-GCCcore-8.2.0 /sw/installed/Python/3.7.2-GCCcore-8.2.0
marie@ml$ virtualenv --system-site-packages /scratch/ws/1/python_virtual_environment/env #create virtual environment "env" which inheriting with global site packages marie@ml$ virtualenv --system-site-packages /scratch/ws/1/python_virtual_environment/env
[...] [...]
marie@ml$ source /scratch/ws/1/python_virtual_environment/env/bin/activate #activate virtual environment "env". Example output: (env) bash-4.2$ marie@ml$ source /scratch/ws/1/python_virtual_environment/env/bin/activate
marie@ml$ python -c "import tensorflow as tf; print(tf.__version__)" marie@ml$ python -c "import tensorflow as tf; print(tf.__version__)"
[...] [...]
2.3.1 2.3.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment