Skip to content

Commit

Permalink
update andes workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jun 18, 2024
1 parent bf2b3a0 commit ac62b77
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions sphinx_docs/source/olcf-andes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,32 @@ then setup ``conda``:

.. prompt:: bash

conda init bash
conda init
conda create --name myenv python=3.11

this will modify your `.bashrc`, adding code that is specific to andes.

Then you do:

.. prompt:: bash

conda create -n andes_env -y ipykernel nb_conda_kernels
conda install -n andes_env -c conda-forge yt

.. note::

If you want to install yt from source, then you would first clone
the yt repo:

.. prompt:: bash
The version of ``conda`` install on andes is very own, so it is best
to install all other packages using pip in your new environment.

git clone git@github.com:yt-project/yt
To activate the environment, do:

Then in the top-level ``yt/`` directory, do:

.. prompt:: bash

pip install -e .
.. prompt:: bash

If you have an existing yt installation, you can uninstall it first via:
source activate myenv

.. prompt:: bash
You can then install yt from source:

pip uninstall yt
.. prompt:: bash

git clone git@github.com:yt-project/yt
cd yt
pip install .

Finally, you can activate the environment as:
Each time you log in, if you want to use this environment,
you need to do:

.. prompt:: bash

Expand Down

0 comments on commit ac62b77

Please sign in to comment.