Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions holoviews/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,9 @@ def __call__(self, *args, **params):
raise ImportError('None of the backends could be imported')
Store.set_current_backend(selected_backend)

from ..core.pprint import InfoPrinter
InfoPrinter.store = Store
Comment on lines +747 to +748
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


import panel as pn

if params.get("enable_mathjax", False) and selected_backend == "bokeh":
Expand Down
Loading