You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Div text should be shown in the exported SVG file and no random temporary files should be created!
Observed behavior
Exporting Bokeh layout or gridplot to SVG does not show Div elements. Moreover, the code generates a new temporary html files (with a random name) in the working directory every time the code is executed even when I have specified an output_file name. If output_file name is specified, then the temporary file creation is skipped at the first execution.
PrateekArya
changed the title
[BUG] Export SVG does not show Div elements and unnecessary temp files
[BUG] Export SVG does not show Div elements and creating random temp files
Nov 19, 2024
Exporting Bokeh layout or gridplot to SVG does not show Div elements.
Bokeh is only able to export plots and layouts of plots as images, in particular as SVG. There is no generic way to export arbitrary HTML (like a Div) to SVG.
Regarding the Div elements, I recommend that the user gets a warning or error saying that it is not possible to show Div elements in exported SVG files. Otherwise, it looks like a bug. The users can then think about using a workaround, for instance, creating empty figures with headings and text, if they really want to export to SVG. 😊
Software versions
Python version: 3.10.14
Bokeh version: 3.6.1
IPython version: 8.29.0
Browser name and version
ChromeDriver 131.0.6778.69
Jupyter notebook / Jupyter Lab version
No response
Expected behavior
The Div text should be shown in the exported SVG file and no random temporary files should be created!
Observed behavior
Exporting Bokeh layout or gridplot to SVG does not show Div elements. Moreover, the code generates a new temporary
html
files (with a random name) in the working directory every time the code is executed even when I have specified anoutput_file
name. Ifoutput_file
name is specified, then the temporary file creation is skipped at the first execution.Example code
Stack traceback or browser console output
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: