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[tensor] # TensorLy-backed tensor decompositions
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-tensor # Tensor decompositions
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-tensor
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
Conda development builds are available for the core package, but official
plugin development builds are not currently uploaded automatically. Stable
plugin packages are published on the main spectrocat channel. For plugin
development, install the plugin from a local source checkout as shown above.
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