Skip to main content

conda-visualizer

Interactive dependency graphs for conda environments, built with Panel and Cytoscape.js.

It reads an installed prefix, a pixi.lock, a conda-lock.yml, an explicit lockfile, an environment.yml (solved with py-rattler) or a DOT file, and renders a graph you can search, highlight, isolate and export.

Usage

conda-visualizer serve [SOURCE]                    # interactive app
conda-visualizer convert SOURCE -o graph.html      # standalone interactive HTML
conda-visualizer convert SOURCE -o graph.dot       # DOT (or .json)
conda-visualizer leaves|cycles|depends|whoneeds -p PREFIX   # conda-tree style queries

Newer versions and version changes

The app's Versions section asks the environment's channels (read from the installed package URLs, so it works for prefixes and lockfiles) for every available version. Packages with a newer one get a double border and 1.2 ↑ 1.5 under their name; pre-releases are ignored.

Pick a package and a version and press Preview change to re-solve the environment with that package pinned. Every other package stays where it is unless the solver has to move it. The graph then fills upgraded packages green, downgraded ones lilac, new ones bright green, rebuilds grey and shows removed ones dashed, fading everything the change does not touch. Select a package to see its normal relations again. The Changes tab lists them. Preview updating everything solves without keeping the installed versions. Requested packages keep their original spec (for example python=3.12), except the one you pin.

The same is available from the command line:

conda-visualizer outdated -p PREFIX                  # newer versions
conda-visualizer plan -p PREFIX lib=2.0              # what switching lib to 2.0 changes
conda-visualizer plan -p PREFIX --update-all
conda-visualizer convert PREFIX --latest --set lib=2.0 -o graph.html

Lookups use py-rattler and need network access to the channels. "Newest" means the newest version in the channel for the platform; the solver decides whether it is compatible with the rest of the environment. PyPI packages are not checked.

The exported HTML needs no Python server. Search, highlighting, isolation, layout switching and PNG/SVG export run in the browser. Cytoscape is embedded from the compiled bundle in the wheel. Bokeh and Panel load from their CDNs unless --inline is passed, which leaves only the brand fonts (Inter, Space Grotesk, Space Mono) on Google Fonts, with Arial as the offline fallback.

In the browser

A Pyodide build runs the whole app client-side: https://assets.holoviz.org/panel-conda-visualizer/index.html (the v0.1.0a1 build on Panel 1.10.0b2 and Bokeh 3.10, also at https://cdn.holoviz.org/panel-conda-visualizer/v0.1.0a1/app/index.html). It takes about 30 seconds to start.

There is no filesystem or conda install to read there, so it starts empty and takes uploads: DOT files (from conda tree deptree --dot or conda-visualizer convert -o graph.dot), pixi.lock, conda-lock.yml and explicit lockfiles. environment.yml and the Versions tools need py-rattler, which has no Pyodide build, so they are unavailable.

The build installs the wheel from the URL it will be served at, since browsers cannot fetch the file: URLs panel convert writes for local wheels:

pixi run -e build build-browser --base-url http://localhost:8123     # local testing
python -m http.server 8123 --directory build/browser

The browser loads the Panel and Bokeh versions installed where the convert runs. To use a different Panel, build the wheel in the pixi build environment and convert from an environment with that Panel:

pixi run -e build python -m build --wheel --outdir build/wheel
python scripts/build_browser.py --wheel build/wheel/conda_visualizer-*.whl --base-url URL

--runtime pyodide --standalone instead writes a single index.html that runs Python on the page's main thread and loads the wheel from --base-url, with no service worker or other files, so it can be opened straight from disk.

With a Panel that supports bundling, --bundle copies Pyodide and every wheel, including the local conda-visualizer wheel, into pyodide/ next to the app, so no Python package or Pyodide file comes from a CDN or PyPI. --panel-version local uses the Panel and Bokeh wheels built in a Panel checkout (pixi run -e build build-pyodide). Run it from an environment with that Panel installed and node and npm on the PATH:

python scripts/build_browser.py --bundle --panel-version local --wheel build/wheel/conda_visualizer-*.whl --out build/bundle

The graph is also available as a component:

from conda_visualizer.component import CytoscapeGraph
from conda_visualizer.sources import load

CytoscapeGraph(load("pixi.lock")).servable()

Development

The wheel ships a bundle compiled with panel compile. In a source checkout run pixi run compile first, otherwise Cytoscape is loaded from esm.sh.

pixi install
pixi run compile
pixi run install-browser
pixi run test
pixi run test-ui

Pushing a vX.Y.Z tag publishes to PyPI (trusted publishing, pypi environment) and syncs the bundle to s3://cdn.holoviz.org/panel-conda-visualizer/vX.Y.Z/, which needs the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY repository secrets.

Metadata

Release files for conda-visualizer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for conda-visualizer 0.1.0
File Size Uploaded Provenance Actions
conda_visualizer-0.1.0.tar.gz 851.4 kB With provenance Details for conda_visualizer-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for conda-visualizer 0.1.0
File Interpreter ABI Platform Actions
conda_visualizer-0.1.0-py3-none-any.whl Python 3 none any Details for conda_visualizer-0.1.0-py3-none-any.whl

Total release size: 1.6 MB

Release files / conda_visualizer-0.1.0.tar.gz

Download URL conda_visualizer-0.1.0.tar.gz
Size 851.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5f698a3492fa41c12c541257cad585da34d3d2a9579cacc2530635911c55b92e
BLAKE2b-256 checksum
How to use checksums
2197d3990bed3e32a218ad8a186a164487b85e8b5bbfc49190699f1763b22dab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / conda_visualizer-0.1.0-py3-none-any.whl

Download URL conda_visualizer-0.1.0-py3-none-any.whl
Size 768.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
268c63d067f47dd0ec674ca71824881853c386bdc614efddfe9d36b6e16a97a0
BLAKE2b-256 checksum
How to use checksums
d24d9dd3c5ce193382006888044b7a51b1c2267fa413a1b693d311f397339e95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for conda-visualizer 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for conda_visualizer-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page