Skip to content

Commit 4823bb2

Browse files
authored
use_isolated_environments.rst spell fix
1 parent 785a4bb commit 4823bb2

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

docs/day2/use_isolated_environments.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Isolated environments
3131

3232
- Another example is when a reviewer want you to remake a figure.
3333
- You have already started to use a newer Python version or newer packages and
34-
- realise that your earlier script does not work anymore.
34+
- realize that your earlier script does not work anymore.
3535
- Having freezed the environment would have solved you from this issue!
3636

3737
.. note::
@@ -59,12 +59,12 @@ What happens at activation?
5959
- Check with ``which python``, should show at path to the environment.
6060
- In conda you can define python version as well
6161
- Since ``venv`` is part of Python you will get the python version used when running the ``venv`` command.
62-
- Packages are defined by the environent.
62+
- Packages are defined by the environment.
6363
- Check with ``pip list``
6464
- Conda can only see what you installed for it.
6565
- ``venv`` and ``virtualenv`` also see other packages if you allowed for that when creating the environment (``--system-site-packages``).
6666
- You can work in a Python shell or IDE (coming session)
67-
- You can run scripts dependent on packages now instaleld in your environment.
67+
- You can run scripts dependent on packages now installed in your environment.
6868

6969
.. warning::
7070

@@ -143,7 +143,7 @@ With this tool you can download and install with ``pip`` from the `PyPI reposito
143143
.. admonition:: Tip for Tetralith
144144

145145
- load a "bare" python, like ``Python/3.10.4-bare-hpc1-gcc-2022a-eb``
146-
- in en environment install setuptools and weel: ``pip3 install --upgrade pip setuptools wheel``
146+
- in en environment install setuptools and wheel: ``pip3 install --upgrade pip setuptools wheel``
147147

148148
.. admonition:: Example NSC
149149

@@ -166,7 +166,7 @@ With this tool you can download and install with ``pip`` from the `PyPI reposito
166166
167167
>>> import matplotlib
168168
169-
- When work is done, decativate the environment with
169+
- When work is done, deactivate the environment with
170170

171171
.. code-block:: console
172172
@@ -175,7 +175,7 @@ With this tool you can download and install with ``pip`` from the `PyPI reposito
175175
.. note::
176176

177177
- You can use "pip list" on the command line (after loading the python module) to see which packages are available and which versions.
178-
- Some packages may be inhereted from the modules you have loaded
178+
- Some packages may be inherited from the modules you have loaded
179179
- You can do ``pip list --local`` to see what is installed by you in the environment.
180180
- Some IDE:s like Spyder may only find those "local" packages
181181
- To save space, you should load any other Python modules you will need that are system installed before installing your own packages! Remember to choose ones that are compatible with the Python version you picked!
@@ -201,7 +201,7 @@ Conda
201201
- conda-forge
202202
- dranew
203203
- free
204-
- ~main~ # not avalible at the HPC-clusters
204+
- ~main~ # not available at the HPC-clusters
205205
- pro
206206
- qiime2
207207
- r
@@ -216,20 +216,20 @@ Conda
216216
Drawbacks
217217

218218
- Conda cannot use already install packages from the Python modules and libraries already installed, and hence installs them anyway
219-
- Conda is therefore known for creating **many** *small* files. Your diskspace is not only limited in GB, but also in number of files (typically ``300000`` in $HOME).
219+
- Conda is therefore known for creating **many** *small* files. Your disk space is not only limited in GB, but also in number of files (typically ``300000`` in $HOME).
220220
- Check your disk usage and quota limit
221221
- Do a ``conda clean -a`` once in a while to remove unused and unnecessary files
222222

223223
.. tip::
224224

225-
- The conda environemnts inclusing many small files are by default stored in ``~/.conda`` folder that is in your $HOME directory with limited storage.
225+
- The conda environments including many small files are by default stored in ``~/.conda`` folder that is in your $HOME directory with limited storage.
226226
- Move your ``.conda`` directory to your project folder and make a soft link to it from ``$HOME``
227227
- Do the following (``mkdir -p`` ignores error output and will not recreate another folder if it already exists):
228228
- (replace what is inside ``<>`` with relevant path)
229229

230230
- Solution 1
231231

232-
This works nicely if you have several projects. Then you can change these varables according to what you are currently working with.
232+
This works nicely if you have several projects. Then you can change these variables according to what you are currently working with.
233233

234234
.. code-block:: bash
235235
@@ -715,7 +715,7 @@ Breakout room according to grouping
715715
716716
(Example) $ deactivate
717717
718-
- Everytime you need the tools available in the virtual environment you activate it as above (after also loading the modules).
718+
- Every time you need the tools available in the virtual environment you activate it as above (after also loading the modules).
719719

720720
.. prompt:: console
721721

0 commit comments

Comments
 (0)