Installation
Create and activate a Python environment:
python -m venv envsource env/bin/activatepip install --upgrade pipInstall the package and its requirements with pip:
pip install -e .Check it with:
python -c "import mhd_sandbox; print(mhd_sandbox.__version__)"The tutorials also need Matplotlib and Jupyter, which the docs extra installs.
Optional extras
Section titled “Optional extras”| Extra | Installs |
|---|---|
test | pytest and coverage |
docs | Matplotlib, the notebook runner and griffe for the API reference |
dev | formatters and linters, plus the test and docs extras |
pip install -e ".[dev]"