Skip to content

fix: hv.help() to work outside IPython/Jupyter#6793

Open
AR21SM wants to merge 1 commit intoholoviz:mainfrom
AR21SM:fix/hv-help-non-ipython
Open

fix: hv.help() to work outside IPython/Jupyter#6793
AR21SM wants to merge 1 commit intoholoviz:mainfrom
AR21SM:fix/hv-help-non-ipython

Conversation

@AR21SM
Copy link

@AR21SM AR21SM commented Feb 4, 2026

Description

Fixes #6775 - hv.help() now provides visualization options (Style Options, Plot Options) when running in plain Python scripts, not just in Jupyter notebooks.

Before

image

After

image

Checklist

  • Pull request title follows the conventional format
  • Tests added and is passing
  • Added documentation

@AR21SM AR21SM force-pushed the fix/hv-help-non-ipython branch from a5622c3 to dd22828 Compare February 4, 2026 18:04
@AR21SM
Copy link
Author

AR21SM commented Feb 4, 2026

Hi @MarcSkovMadsen, I'm unable to edit the PR title from my end. Could you please change "Fix:" to "fix:" (lowercase) to pass the semantic PR title check? Thanks!

@hoxbro hoxbro changed the title Fix: hv.help() to work outside IPython/Jupyter fix: hv.help() to work outside IPython/Jupyter Feb 4, 2026
@AR21SM
Copy link
Author

AR21SM commented Feb 4, 2026

Thanks@hoxbro :)

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.21%. Comparing base (191aa3b) to head (dd22828).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6793   +/-   ##
=======================================
  Coverage   89.21%   89.21%           
=======================================
  Files         334      334           
  Lines       72362    72364    +2     
=======================================
+ Hits        64559    64561    +2     
  Misses       7803     7803           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +747 to +748
from ..core.pprint import InfoPrinter
InfoPrinter.store = Store
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why you have chosen to put it here

Placing it here will only make it work, after you have called hv.extension.

We also need to check whether this store will work on Windows cmd.exe (if you haven't already checked it).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The placement is intentional. hv.help() needs InfoPrinter.store to access Store.registry for Style/Plot options. This registry is only populated after hv.extension() loads a backend before that, there's nothing to show.

I've tested this on Windows cmd.exe and confirmed it works correctly.
Image

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.

hv.help not helpful outside of Jupyter

2 participants