Skip to content

Commit bdf1fe5

Browse files
Replace tab by two spaces
1 parent a6db353 commit bdf1fe5

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

docs/day2/jupyter.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Within your terminal with the interactive session,
9292
load a modern Python module:
9393

9494
.. code-block:: sh
95-
95+
9696
module load python/3.11.8
9797
9898
Then, start ``jupyter-notebook`` (or ``jupyter-lab``):
@@ -126,7 +126,7 @@ On own computer
126126
- On Linux or Mac this is done by running in another terminal. Make sure you have the ports changed if they are not at the default ``8888``.
127127

128128
.. code-block:: sh
129-
129+
130130
$ ssh -L 8888:r486:8888 username@rackham.uppmax.uu.se
131131
132132
- If you use Windows it may be better to do this in the PowerShell instead of a WSL2 terminal.
@@ -197,7 +197,7 @@ for a specific <version> to see which prerequisites should be loaded first.
197197
Something like the file below will work. Remember to change the project id after the course, how many cores you need, and how long you want the JupyterLab to be available:
198198

199199
.. code-block:: slurm
200-
200+
201201
#!/bin/bash
202202
#SBATCH -A hpc2n2024-114
203203
# This example asks for 1 core
@@ -393,7 +393,7 @@ Later you can remove the kernel if you feel like, using this:
393393
8. Now make a submit file as before. Something like this should work:
394394
395395
.. code-block:: sh
396-
396+
397397
#!/bin/bash
398398
#SBATCH -A hpc2n2024-114
399399
# Here allocating 1 core - change as suitable for your case

docs/day2/use_isolated_environments.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ Conda
279279

280280
.. admonition:: Conda cheat sheet
281281

282-
- List packages in present environment: ``conda list``
283-
- List all environments: ``conda info -e`` or ``conda env list``
282+
- List packages in present environment: ``conda list``
283+
- List all environments: ``conda info -e`` or ``conda env list``
284284
- Install a package: ``conda install somepackage``
285285
- Install from certain channel (conda-forge): ``conda install -c conda-forge somepackage``
286286
- Install a specific version: ``conda install somepackage=1.2.3``

docs/day2/use_isolated_environments_old.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ Next steps are the same for all clusters
316316
.. admonition:: Conda cheat sheet
317317
:class: dropdown
318318

319-
- List packages in present environment: ``conda list``
320-
- List all environments: ``conda info -e`` or ``conda env list``
319+
- List packages in present environment: ``conda list``
320+
- List all environments: ``conda info -e`` or ``conda env list``
321321
- Install a package: ``conda install somepackage``
322322
- Install from certain channel (conda-forge): ``conda install -c conda-forge somepackage``
323323
- Install a specific version: ``conda install somepackage=1.2.3``

docs/extra/conda.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ Using Conda
8484

8585
.. admonition:: Conda cheat sheet
8686

87-
- List packages in present environment: ``conda list``
88-
- List all environments: ``conda info -e`` ot ``conda env list``
87+
- List packages in present environment: ``conda list``
88+
- List all environments: ``conda info -e`` ot ``conda env list``
8989
- Install a package: ``conda install somepackage``
9090
- Install from certain channel (conda-forge): ``conda install -c conda-forge somepackage``
9191
- Install a specific version: ``conda install somepackage=1.2.3``
@@ -105,22 +105,22 @@ Using Conda
105105
.. prompt:: bash $
106106

107107
conda create --name python36-env python=3.6 numpy=1.13.1 matplotlib=2.2.2
108-
108+
109109
.. admonition:: The ``mamba`` alternative
110110
:class: dropdown
111111

112-
- ``mamba`` is a fast drop-in alternative to conda, using "libsolv" for dependency resolution. It is available from the ``conda`` module.
113-
- Example:
114-
112+
- ``mamba`` is a fast drop-in alternative to conda, using "libsolv" for dependency resolution. It is available from the ``conda`` module.
113+
- Example:
114+
115115
.. prompt:: bash $
116116

117-
mamba create --name python37-env python=3.7 numpy=1.13.1 matplotlib=2.2.2
117+
mamba create --name python37-env python=3.7 numpy=1.13.1 matplotlib=2.2.2
118118

119119
4. Activate the conda environment by:
120120

121121
.. prompt:: bash $
122122

123-
source activate python36-env
123+
source activate python36-env
124124

125125
- You will see that your prompt is changing to start with ``(python-36-env)`` to show that you are within an environment.
126126

docs/extra/jupyterHPC2N.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ for a specific <version> to see which prerequisites should be loaded first.
2424
Something like the file below will work. Remember to change the project id after the course, how many cores you need, and how long you want the JupyterLab to be available:
2525

2626
.. code-block:: slurm
27-
27+
2828
#!/bin/bash
2929
#SBATCH -A hpc2n2025-151
3030
# This example asks for 1 core
@@ -220,7 +220,7 @@ Later you can remove the kernel if you feel like, using this:
220220
8. Now make a submit file as before. Something like this should work:
221221
222222
.. code-block:: sh
223-
223+
224224
#!/bin/bash
225225
#SBATCH -A hpc2n2025-151
226226
# Here allocating 1 core - change as suitable for your case

0 commit comments

Comments
 (0)