Skip to content
Snippets Groups Projects
Commit e646fe92 authored by patmjen's avatar patmjen
Browse files

Add more formatting

This hopefully makes it easier to spot what's an actual step in the
and what is extra info.
parent a443d9b2
No related branches found
No related tags found
No related merge requests found
...@@ -48,11 +48,11 @@ a100sh ...@@ -48,11 +48,11 @@ a100sh
``` ```
You should now be able to install packages with pip install <PACKAGE> as normal. You should now be able to install packages with pip install <PACKAGE> as normal.
If pip doesn't work, you may need to manually install it with:
``` > __Troubleshooting:__ If pip doesn't work, you may need to manually install it with:
easy_install pip > ```
``` > easy_install pip
To run python, remember to use the `python3` command. > ```
## III. Virtualenv activation ## III. Virtualenv activation
...@@ -74,23 +74,23 @@ To run python, remember to use the `python3` command. ...@@ -74,23 +74,23 @@ To run python, remember to use the `python3` command.
source <VENV_NAME>/bin/activate source <VENV_NAME>/bin/activate
``` ```
__Pro tip:__ To make life easy, put these commands in a bash script called `init.sh`: > __Pro tip:__ To make life easy, put these commands in a bash script called `init.sh`:
``` > ```
#!/bin/bash > #!/bin/bash
module load python3/3.8.9 > module load python3/3.8.9
module load numpy/1.19.5-python-3.8.9-openblas-0.3.13 > module load numpy/1.19.5-python-3.8.9-openblas-0.3.13
module load scipy/1.5.4-python-3.8.9 > module load scipy/1.5.4-python-3.8.9
module load cuda/11.0 > module load cuda/11.0
>
source <VENV_NAME>/bin/activate > source <VENV_NAME>/bin/activate
``` > ```
>
which you can then run by entering: > which you can then run by entering:
``` > ```
source init.sh > source init.sh
``` > ```
>
and this will prepare everything > and this will prepare everything
## IV. Jupyter notebooks on ThinLinc ## IV. Jupyter notebooks on ThinLinc
...@@ -122,12 +122,12 @@ and this will prepare everything ...@@ -122,12 +122,12 @@ and this will prepare everything
jupyter lab jupyter lab
``` ```
This should open a browser with the Jupyter lab interface. This should open a browser with the Jupyter lab interface.
Sometimes this has some issues and one then need to revert to Jupyter notebooks. > __Troubleshooting:__ Sometimes Jupyter lab has some issues and you need to revert to Jupyter notebooks.
## V. Jupyter notebooks on the cluster in your own browser ## V. Jupyter notebooks on the cluster in your own browser
**WARNING:** This will be a bit involved... > __WARNING:__ This will be a bit involved...
Credit goes to Niels Jeppesen who figured all this out. > Credit goes to Niels Jeppesen who figured all this out.
1. Open a terminal on the cluster, either through ThinLinc or ssh. 1. Open a terminal on the cluster, either through ThinLinc or ssh.
...@@ -136,12 +136,12 @@ Credit goes to Niels Jeppesen who figured all this out. ...@@ -136,12 +136,12 @@ Credit goes to Niels Jeppesen who figured all this out.
``` ```
tmux tmux
``` ```
This way, _**if you lose your internet connection**_ your notebook will keep running. > _**If you lose your internet connection**_ your notebook will keep running.
You can _**reconnect**_ to the tmux session by running: > You can _**reconnect**_ to the tmux session by running:
``` > ```
tmux attach > tmux attach
``` > ```
in a terminal on the cluster. > in a terminal on the cluster.
3. Take note of the node's hostname. You can see this by running: 3. Take note of the node's hostname. You can see this by running:
``` ```
...@@ -176,14 +176,14 @@ Credit goes to Niels Jeppesen who figured all this out. ...@@ -176,14 +176,14 @@ Credit goes to Niels Jeppesen who figured all this out.
This should open the Jupyter interface. Any commands you run will be executed on the HPC This should open the Jupyter interface. Any commands you run will be executed on the HPC
cluster. cluster.
**NOTE:** If no URL beginning with `127.0.0.1` was printed in step 5, change the first part > **NOTE:** If no URL beginning with `127.0.0.1` was printed in step 5, change the first part
manually to `127.0.0.1` before entering it in your browser. In the example from step 5, you > manually to `127.0.0.1` before entering it in your browser. In the example from step 5, you
would change `n-62-20-9` to `12.0.0.1`. > would change `n-62-20-9` to `12.0.0.1`.
If you close your browser, you can reconnnect by entering the URL again. If you close your browser, you can reconnnect by entering the URL again.
If you lose your internet connection, you can reconnect by repeating steps 5 and 6. If you lose your internet connection, you can reconnect by repeating steps 5 and 6.
**NOTE:** You can make inline plots in the notebook, but cannot open new windows for plotting. > **NOTE:** You can make inline plots in the notebook, but cannot open new windows for plotting.
The closest you can get is by starting the server on a ThinLinc node with X11 forwarding. > The closest you can get is by starting the server on a ThinLinc node with X11 forwarding.
This will allow you to have the notebook in your own browser, but new windows will be opened > This will allow you to have the notebook in your own browser, but new windows will be opened
in ThinLinc. > in ThinLinc.
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