Skip to content

Fix import without Plotly for 0.4.1 - #42

Merged
marco-mariotti merged 2 commits into
pyranges:mainfrom
ginitheclaw:fix/lazy-browser-0.4.1
May 25, 2026
Merged

Fix import without Plotly for 0.4.1#42
marco-mariotti merged 2 commits into
pyranges:mainfrom
ginitheclaw:fix/lazy-browser-0.4.1

Conversation

@ginitheclaw

Copy link
Copy Markdown
Contributor

Summary

  • bump version to 0.4.1
  • keep pe.browse() available, but import the experimental browser lazily so import pyrangeyes does not require Plotly
  • raise a clear optional-dependency message only when pe.browse() is called without Plotly installed
  • remove unmaintained browser regression/interactive tests for now
  • clean up unused imports flagged by ruff

Tests

  • simulated missing Plotly with an import blocker: import pyrangeyes succeeds; pe.browse(...) raises the optional-dependency message
  • .venv/bin/ruff check src tests
  • .venv/bin/python -m pytest tests -q
  • .venv/bin/sphinx-build -b html docs docs/_build/html

@marco-mariotti
marco-mariotti merged commit e4544af into pyranges:main May 25, 2026
1 check 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