Installation¶
Requirements¶
lonkit requires Python 3.10 or higher.
Install from PyPI¶
The simplest way to install lonkit is via pip:
Chrome for 3D image and GIF export¶
Saving 3D plots as images, creating rotation GIFs, and calling visualize_all()
require Chrome or Chromium. Kaleido 1.x uses an external browser; it does not
bundle one. If Chrome is already installed, Kaleido should find it automatically.
Otherwise, install a compatible browser with:
For a source checkout managed with uv, use uv run kaleido_get_chrome.
The download requires an internet connection. In CI, run this command before
the visualization tests. 2D plots and creating Plotly figures without image
export do not require Chrome.
See the Kaleido installation instructions for details.
Install from Source¶
For the latest development version:
Development Installation¶
To install lonkit with development dependencies for contributing:
This includes:
pytest- Testing frameworkpytest-cov- Coverage reportingruff- Linting and formattingmypy- Type checkingpre-commit- Git hooks
Verifying Installation¶
After installation, verify everything works:
You should see the version number (e.g., 0.3.0).
Troubleshooting¶
igraph Installation Issues¶
On some systems, you may need to install igraph system dependencies first:
Plotly/Kaleido Issues¶
lonkit requires Plotly >= 6.1.1 and Kaleido >= 1.0.0. If you encounter a version compatibility error, upgrade both packages together:
If export reports that Chrome is missing, install it with:
Do not downgrade to Kaleido 0.2.1; it is outside lonkit's supported dependencies.