Installation#

Manual installation#

Rust (required for the PDE solver and CLI):

If you don’t have Rust installed, the easiest way is via rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"

Python 3.9+ (required for the Python package and notebooks):

conda create -n spectroxide python=3.11
conda activate spectroxide

Build and install:

cargo build --release                 # build Rust PDE solver
cargo test                            # run all tests
pip install -e "python/.[plot]"       # Python package with matplotlib
pip install -e "python/.[notebook]"   # ... or with Jupyter too

Verifying the installation#

After installation, verify both components work:

# Rust binary
cargo run --release --bin spectroxide -- info

# Python package
python -c "from spectroxide import run_single; print(run_single(z_h=2e5, delta_rho=1e-5))"