Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instructions levante.dkrz.de #18

Merged
merged 4 commits into from Apr 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 38 additions & 0 deletions setup_levante.md
@@ -0,0 +1,38 @@
# setup for `levante.dkrz.de`

For `mistral.dkrz.de` follow the same guide.

On `levante` [clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) the [github](https://en.wikipedia.org/wiki/GitHub) [repository](https://docs.github.com/en/repositories):
```
git clone https://github.com/observingClouds/bitinformation_pipeline.git
cd bitinformation_pipeline
```

Create a new [conda environment](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands) and register the python [kernel](https://docs.dkrz.de/doc/software&services/jupyterhub/kernels.html#use-your-own-kernel):
```
module load python3
mamba env create -f environment.yml
source activate bitinfo
python -m ipykernel install --user --name bitinfo --display-name=bitinfo
```

Create `~/jupyter_preload` on `levante`:
```
source activate bitinfo
```

Get [jupyter](https://docs.jupyter.org/en/latest/) with [`start-jupyter script from DKRZ`](https://gitlab.dkrz.de/k204213/ssh_scripts/-/blob/master/start-jupyter) on your laptop:
```
wget https://gitlab.dkrz.de/k204213/ssh_scripts/-/blob/master/start-jupyter
```

Personalize the following lines:
- [L59](https://gitlab.dkrz.de/k204213/ssh_scripts/-/blob/master/start-jupyter#L59): `SJ_ACCTCODE=mh0727` with your account number
- [L65](https://gitlab.dkrz.de/k204213/ssh_scripts/-/blob/master/start-jupyter#L65): `SJ_USERNAME=m300524` with your username
- [L70](https://gitlab.dkrz.de/k204213/ssh_scripts/-/blob/master/start-jupyter#L70): `SJ_COMMAND=lab` for using jupyter `notebook` or jupyter `lab`
- [L90](https://gitlab.dkrz.de/k204213/ssh_scripts/-/blob/master/start-jupyter#L90): `SJ_INCFILE="jupyter_preload"`
- [L96](https://gitlab.dkrz.de/k204213/ssh_scripts/-/blob/master/start-jupyter#L96): `SJ_FRONTEND_HOST="levante.dkrz.de"`

Now `start-jupyter` (overwriting script options is possible in the command line, see
[available options](https://gitlab.dkrz.de/k204213/ssh_scripts/-/blob/master/start-jupyter#L141)):
`sh start-jupyter`