-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
holoview.Div() doesn't display #5963
Comments
I am having the same issue |
Behind the scene from panel.models.markup import HTML
from bokeh.io import curdoc, show
from html import escape
text="""
<h1>Div</h1>
<h3>A simple demo</h2>
<figure>
<img src="https://assets.holoviews.org/logo/holoviews_color_icon_500x500.png" height='200' width='200'>
<figcaption><b>Fig 1:</b> This is a figure caption with $$LaTeX$$</figcaption>
"""
html = HTML(text=escape(text), width=200, height=200)
curdoc().add_root(html) This seems to have been introduced in holoviz/panel#5275, where the container is set to hidden but never changed back to visible. The simplest fix is to add |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The hv.Div command produces output that is not visible in JupyterLab. The output is also not visible in the holoviews docs, https://holoviews.org/reference/elements/bokeh/Div.html.
ALL software version info
the latest software versions do not work (python 3.10):
The first combination that works, albeit without the caption (python 3.10):
Description of expected behavior and the observed behavior
When running hv.Div(text) the output should be similar to the one obtained with bokeh. The first example from holoviews' docs,https://holoviews.org/reference/elements/bokeh/Div.html, should result in:

Related issue: #4743.
In the software version combination that work for me a milder case of the issue described there is visible (the title levels are shwon correctly, only the caption is missing):

Complete, minimal, self-contained example code that reproduces the issue
From holoviews' docs:
Screenshots or screencasts of the bug in action
See also missing outputs in: https://holoviews.org/reference/elements/bokeh/Div.html
The text was updated successfully, but these errors were encountered: