Skip to content

Commit c8e48fa

Browse files
authored
Merge pull request #154 from YooSunYoung/doc-env-mantid
Add mantid included conda environment recipe
2 parents 4ad3ef9 + e9d267e commit c8e48fa

File tree

2 files changed

+50
-5
lines changed

2 files changed

+50
-5
lines changed

docs/environments/ess-mantid.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: ess-mantid
2+
3+
channels:
4+
- conda-forge
5+
- scipp
6+
- nodefaults
7+
- mantid
8+
9+
dependencies:
10+
- ess
11+
- mantid
12+
- astropy
13+
- matplotlib
14+
- tifffile
15+
- jupyterlab
16+
- jupyterlab_widgets
17+
- pythreejs
18+
- scipy
19+
- ipympl

docs/getting-started/installation.rst

+31-5
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,29 @@ The easiest way to install ``ess`` is using `conda <https://docs.conda.io>`_.
77
Packages from `Anaconda Cloud <https://conda.anaconda.org/scipp>`_ are available for Linux, macOS, and Windows.
88
It is recommended to create an environment rather than installing individual packages.
99

10-
With the provided environment file
11-
----------------------------------
10+
Install mamba
11+
-------------
12+
13+
Instead of ``conda``, we recommend ``mamba`` as a conda package manager.
14+
It is known that ``conda`` can be very slow and ``mamba`` can solve the problem.
15+
You can install ``mamba`` with the command below.
16+
17+
.. code-block:: sh
18+
19+
conda install mamba -n base -c conda-forge
20+
21+
Once ``mamba`` is installed, you can replace ``conda`` with ``mamba`` when you install any packages or create an environment.
22+
23+
Use the provided environment file
24+
---------------------------------
1225

1326
1. Download :download:`ess.yml <../environments/ess.yml>`.
1427
2. In a terminal run:
1528

1629
.. code-block:: sh
1730
1831
conda activate
19-
conda env create -f ess.yml
32+
mamba env create -f ess.yml # same as ``conda env create -f ess.yml``
2033
conda activate ess
2134
jupyter lab
2235
@@ -36,20 +49,33 @@ You may want to remove your old environment first, e.g.,
3649
and then proceed as per instructions above.
3750
The ``conda activate`` ensures that you are in your ``base`` environment.
3851

52+
Using Mantid
53+
~~~~~~~~~~~~
54+
55+
If you want to install ``mantid`` alongside ``ess`` in your environment, use the :download:`ess-mantid.yml <../environments/ess-mantid.yml>` environment file instead:
56+
57+
.. code-block:: sh
58+
59+
mamba env create -f ess-mantid.yml # same as ``conda env create -f ess-mantid.yml``
60+
61+
conda activate ess-mantid
62+
jupyter lab
63+
64+
3965
Without the provided environment file
4066
-------------------------------------
4167

4268
To create a new conda environment with ``ess``:
4369

4470
.. code-block:: sh
4571
46-
conda create -n env_with_ess -c conda-forge -c scipp ess
72+
mamba create -n env_with_ess -c conda-forge -c scipp ess
4773
4874
To add ``ess`` to an existing conda environment:
4975

5076
.. code-block:: sh
5177
52-
conda install -c conda-forge -c scipp ess
78+
mamba install -c conda-forge -c scipp ess
5379
5480
.. note::
5581
Installing ``ess`` on Windows requires ``Microsoft Visual Studio 2019 C++ Runtime`` installed.

0 commit comments

Comments
 (0)