From 604fc5059b0eef6c8c271b1e52707d0ddac2abc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Mon, 11 Apr 2022 22:55:24 +0200 Subject: [PATCH] feat: n7 tensorflow script --- n7tensorflow.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 n7tensorflow.sh diff --git a/n7tensorflow.sh b/n7tensorflow.sh new file mode 100644 index 0000000..711b381 --- /dev/null +++ b/n7tensorflow.sh @@ -0,0 +1,17 @@ +# on se place dans les eaux internationales, loin des quotas +mkdir /tmp/deepl +cd /tmp/deepl + +# pour CUDA tensorflow +export LD_LIBRARY_PATH=/applications/matlabr2021b/bin/glnxa64/:$LD_LIBRARY_PATH + +# on installe un environnement virtuel python +python3 -m venv .env +source .env/bin/activate +python -m pip install pip tensorflow matplotlib numpy sklearn ipykernel jupterlab + +# on inscrit le venv dans la liste des kernels ipython +python -m ipykernel install --user --name=.env + +# on lance un notebook +jupyter-lab --no-browser --ip 0.0.0.0 --port 8888