Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Sep 13, 2024
1 parent 3f9360c commit fe63148
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions hvplot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,16 @@
# the package.
__version__ = '0.0.0+unknown'

_extensions = {
'hvplot.cudf',
'hvplot.dask',
'hvplot.ibis',
'hvplot.intake',
'hvplot.fugue',
}
# The hvplot.<ext> import mechanism is a convenient way to allow users to have
# to avoid running the holoviews/panel extensions. However since imports are
# cached only the first import actually embeds the extension JS code, meaning
# that if you re-run the cell(s) containing import hvplot.pandas (or some other
# integration) then the JS will no longer be available and on subsequent
# reloads/re-runs of the notebook plots may not appear.
# Here we add an IPython hook which simply deletes the modules before every
# cell execution. This is a big hammer but at least it is restricted to
# IPython environments.
_extensions = {}

try:
ip = get_ipython() # noqa
Expand Down

0 comments on commit fe63148

Please sign in to comment.