Skip to content

Commit

Permalink
update and fix installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
p-slash committed Oct 5, 2023
1 parent d1d1911 commit aca3a55
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,31 @@ If you are on NERSC, I recommend using the pre-installed environment. This is in
source /global/cfs/projectdirs/desi/science/lya/scripts/activate_qsonic.sh
To have a Jupyter kernel, run the following command after activation:

.. code:: shell
python -m ipykernel install --user --name qsonic --display-name qsonic
Install from PyPi
-----------------

Explicit NERSC instructions for the lazy:

.. code-block:: shell
module load cpu
module load python
conda create -n qsonic python numpy scipy numba iminuit fitsio healpy
conda create -n qsonic python=3.10
conda activate qsonic
MPICC="cc -shared" pip install --force-reinstall --no-cache-dir --no-binary=mpi4py mpi4py
pip install qsonic
If you want Jupyter kernel, you need to additionally install ``ipykernel`` into your environment and run the same command. See this `NERSC guide <https://docs.nersc.gov/services/jupyter/how-to-guides/>`_ on Jupyter.


General
-------

Expand All @@ -37,7 +50,7 @@ If you want to get the latest (possibly unstable) version:

.. code-block:: shell
pip install "git+https://github.com/p-slash/qsonic.git"
pip install git+ssh://git@github.com/p-slash/qsonic.git
For developers:

Expand Down

0 comments on commit aca3a55

Please sign in to comment.