|
44 | 44 | "cell_type": "markdown", |
45 | 45 | "metadata": {}, |
46 | 46 | "source": [ |
47 | | - "\n", |
48 | | - "## Climada installation in a virtual environment\n", |
49 | | - "\n", |
50 | | - "Climada is pre-installed and available in the default pip environment of Euler." |
| 47 | + "## Climada installation in a virtual environment" |
51 | 48 | ] |
52 | 49 | }, |
53 | 50 | { |
|
90 | 87 | "envname=climada_env\n", |
91 | 88 | "\n", |
92 | 89 | "# create environment\n", |
93 | | - "python -m venv --system-site-packages ~/venv/$envname\n", |
| 90 | + "python -m venv --system-site-packages /cluster/project/climate/$USER/venv/$envname\n", |
94 | 91 | "\n", |
95 | 92 | "# acitvate it\n", |
96 | | - ". ~/venv/$envname/bin/activate\n", |
| 93 | + ". /cluster/project/climate/$USER/venv/$envname/bin/activate\n", |
97 | 94 | "\n", |
98 | 95 | "# install python kernel (to be used in JupyterHub, s.b.)\n", |
99 | 96 | "python -m ipykernel install --user --name $envname\n", |
|
130 | 127 | "\n", |
131 | 128 | "#### option A\n", |
132 | 129 | "```bash\n", |
133 | | - "cd path/to/local/git/climada_python\n", |
| 130 | + "cd /cluster/project/climate/$USER # or wherever you plan to download the repository\n", |
| 131 | + "git clone https://github.com/CLIMADA-project/climada_python.git # unless this has been done before\n", |
| 132 | + "cd climada_python\n", |
134 | 133 | "pip install -e .\n", |
135 | 134 | "```\n", |
136 | 135 | "\n", |
|
209 | 208 | "For using climada inside the jupyter notebook, you need to create a customized `jupyterlabrc` file by running the following lines:\n", |
210 | 209 | "\n", |
211 | 210 | "```bash\n", |
| 211 | + "mkdir -p ~/.config/euler/jupyterhub\n", |
212 | 212 | "cat > ~/.config/euler/jupyterhub/jupyterlabrc <<EOF\n", |
213 | 213 | "\n", |
214 | 214 | "module purge\n", |
|
453 | 453 | "\n", |
454 | 454 | "Once the Jupyterlab has started, open a Python notebook and stick to the default kernel." |
455 | 455 | ] |
456 | | - }, |
457 | | - { |
458 | | - "cell_type": "markdown", |
459 | | - "metadata": {}, |
460 | | - "source": [] |
461 | 456 | } |
462 | 457 | ], |
463 | 458 | "metadata": { |
|
0 commit comments