-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't load any html in the notebook when no logo is required #5216
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5216 +/- ##
=======================================
Coverage 86.75% 86.75%
=======================================
Files 298 298
Lines 62162 62162
=======================================
Hits 53929 53929
Misses 8233 8233
Continue to review full report at Codecov.
|
Two checks were cancelled because they timed out after 1hr. Looking forward to the new libmamba solver to speed things up, and maybe the caching Mridul has started to implement in hvPlot. |
holoviews/ipython/__init__.py
Outdated
@@ -194,7 +194,7 @@ def __call__(self, *args, **params): | |||
"hv-extension-comm") | |||
|
|||
# Create a message for the logo (if shown) | |||
if not same_cell_execution: | |||
if not same_cell_execution and p.logo: | |||
self.load_hvjs(logo=p.logo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that panel handles the JS now, I guess this is now misnamed (an artifact of history). Could you double check it is only used to load HTML and if so, rename it to self.load_extension_html
(or similar)?
Looks good to me! |
This avoids calling
publish_display_data
in a notebook when callinghv.extension()
withlogo=False
because unfortunately in JupyterLab each call topublish_display_data
ends up adding an empty line.The call to
publish_display_data
loads HTML from theload_notebook.html
template which only contains the logos base64 encoded. So it seems safe to avoid loading this HTML when no logo is required.