Optional Dependenciesο
Warning
Make sure your base installation is working before adding optional dependencies.
Overviewο
SpectroChemPy can be extended with optional dependencies for specific functionality.
Missing dependencies will only raise an ImportError when the specific feature is used.
Examples and Testing Dataο
Note
Example data is not included in the main package to reduce installation size.
Installation options:
mamba install -c spectrocat spectrochempy_data
Download from GitHub releases and extract to your preferred location.
Note
You may need to configure data paths when using manual installation.
Optional Pluginsο
SpectroChemPy includes several optional plugins that extend its capabilities for specific domains. Install them as needed:
pip install spectrochempy[iris] # 2D-IRIS analysis
pip install spectrochempy[nmr] # Bruker TopSpin reader & NMR processing
pip install spectrochempy-carroucell # Carroucell experiment reader
mamba install -c spectrocat spectrochempy-iris # 2D-IRIS analysis
mamba install -c spectrocat spectrochempy-nmr # Bruker TopSpin & NMR
mamba install -c spectrocat spectrochempy-hypercomplex # Quaternion support
mamba install -c spectrocat spectrochempy-carroucell # Carroucell reader
pip install -e plugins/spectrochempy-iris
pip install -e plugins/spectrochempy-nmr
pip install -e plugins/spectrochempy-carroucell
Each plugin is independently versioned and maintained. Missing plugins
raise a clear MissingPluginError with installation instructions when
the corresponding feature is accessed.
Note
Development builds
Pre-release (dev) versions of plugins are published to the dev label
on Anaconda.org. To install the latest development build:
mamba install -c spectrocat/label/dev -c conda-forge spectrochempy-nmr
Dev builds may depend on the latest dev core package, so include the dev channel for core as well:
mamba install -c spectrocat/label/dev -c conda-forge spectrochempy
See also
Plugins for more details on the plugin system.
Cantera (experimental)ο
Warning
The spectrochempy-cantera plugin is experimental and not
officially supported. It is not included in aggregate extras and must be
installed manually:
pip install spectrochempy-cantera
See Experimental plugins for details.
For users who still need the Cantera library outside of SpectroChemPy, it can be installed separately:
mamba install -c cantera cantera
pip install cantera
GUI Supportο
Qt Backendο
For interactive matplotlib plots:
mamba install "pyqt>=5.15.0"
pip install "pyqt5>=5.15.0"
Usage in Jupyter:
%matplotlib qt
Note
Qt backend is recommended for detailed plot manipulation and better interactivity.
Troubleshootingο
If you encounter issues:
Verify base installation:
python -c "import spectrochempy"Check dependency versions:
mamba list/pip listUpdate all packages:
mamba update --all/pip install --upgrade spectrochempySee Getting Help for support