Installation

Requirements

  • Python >= 3.9

  • NetworkX >= 3.0

  • PyYAML >= 6.0

  • jsonschema >= 4.0

Optional dependencies for visualization: * matplotlib >= 3.0

Installation Methods

Using pip (Editable Install)

From the repository root:

# First activate your conda environment (if using conda)
conda activate <your-env>

# Then install in editable mode
pip install -e .

This makes the ndtools package importable anywhere in that environment.

Using pip (Regular Install)

pip install ndtools

Verify Installation

Check that the package is properly installed:

python -c "import ndtools; print(ndtools.__version__)"

Run Tests

To verify everything is working correctly:

pytest -q

Development Installation

For development work, you may want to install additional dependencies:

# Install with development dependencies
pip install -e ".[dev]"

# Or install additional packages manually
pip install pytest matplotlib jupyter

Environment Setup

For a clean environment setup:

# Create new conda environment
conda create -n network-datasets python=3.12
conda activate network-datasets

# Install the package
pip install -e .

# Verify installation
python -c "import ndtools; print('Installation successful!')"