Skip to content

feat: isolate visualization dependencies behind optional extra - #50

Merged
gloriachin merged 4 commits into
feat/promote-experimental-apisfrom
feature/isolated-viz-extras
Aug 14, 2026
Merged

feat: isolate visualization dependencies behind optional extra#50
gloriachin merged 4 commits into
feat/promote-experimental-apisfrom
feature/isolated-viz-extras

Conversation

@SkyeAv

@SkyeAv SkyeAv commented Aug 12, 2026

Copy link
Copy Markdown
Member

Moves visualization-only dependencies out of TCT's minimal installation and documents the opt-in installation path. The base package can now be installed without pulling plotting and graph-rendering packages.

Optional Visualization Dependencies

  • vision extra: Moves ipycytoscape, matplotlib, networkx, pyvis, and seaborn into [project.optional-dependencies].vision.
  • Lazy imports: Loads visualization libraries only when visualization functions are called, preserving base-package imports without those dependencies.
  • Lockfile: Regenerates uv.lock with the new optional dependency markers.

Documentation

  • Minimal install: Documents pip install TCT.
  • Visualization install: Documents pip install "TCT[vision]" and uv sync --extra vision in README.md and docs/source/intro.md.

Testing

  • uv lock --check — passed.
  • uv run --extra mcp pytest -q58 passed, 1 skipped.
  • uv build --out-dir /tmp/tct-dist-check — wheel and source distribution built successfully.
  • Base import guarded against visualization imports — passed.
  • Sphinx CI run — passed: run #31650717890.
  • uv run ruff check TCT tests — existing repository findings remain; CI lint is non-blocking.

@gloriachin
gloriachin merged commit 5a46cb6 into feat/promote-experimental-apis Aug 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants