Installation

Requirements

  • Python 3.10 or higher
  • pip or uv package manager

Basic Installation

Install from PyPI (when published):

pip install mdu

Or using uv (faster):

uv pip install mdu

Development Installation

Clone the repository and install in editable mode:

git clone https://github.com/matthiasdold/mdu.git
cd mdu
pip install -e ".[dev]"

Optional Dependencies

MD Utils has several optional dependency groups:

Resampler (Large Time Series)

pip install mdu[resampler]

Enables plotly-resampler for efficient plotting of large datasets (>100k points).

Machine Learning

pip install mdu[ml]

Adds scikit-learn for ML visualization utilities.

Dashboard Support

pip install mdu[dash]

Includes dash and PyYAML for interactive dashboards.

Time-Frequency Analysis

pip install mdu[tfr]

Adds Pillow and fire for TFR plotting from command line.

All Features

pip install mdu[all]

Installs all optional dependencies.

Verify Installation

import mdu
print(mdu.__version__)

# Check optional features
from mdu.plotly import time_series, shared, template
from mdu.utils import converters, logging

Troubleshooting

Import Errors

If you get import errors, ensure the package is installed:

pip list | grep mdu

Missing Optional Dependencies

Some features require optional dependencies. Install the appropriate extra:

pip install mdu[resampler,ml]

Development Dependencies

For testing and development:

pip install mdu[dev]
pytest tests/