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
In a notebook, I can see the interactive figure with a toolbar, the image is resizeable, etc.
html output
When rendered to html using the command:
python -m nbconvert --execute notebook.ipynb --to html
The figure is static, no toolbar is shown, the widget is not resizable, and it is also missing part of its title (reads as Figure instead of Figure 1). The results are similar without the --execute flag.
which makes it seem as though it should be interactive, so I am not sure why it is static.
I do see some errors in the browser:
Failed to load resource: the server responded with a status of 404 (Not Found)
notebook.html:1 Refused to execute script from 'http://127.0.0.1:5500/jupyter-matplotlib.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
2embed-amd.js:26 Falling back to https://cdn.jsdelivr.net/npm/ for jupyter-matplotlib@^0.11
Hi all! In a Jupyter Notebook, I am creating a matplotlib widget that I would like to export to HTML and still be interactive.
minimal example widget:
notebook output
In a notebook, I can see the interactive figure with a toolbar, the image is resizeable, etc.
html output
When rendered to html using the command:
The figure is static, no toolbar is shown, the widget is not resizable, and it is also missing part of its title (reads as
Figure
instead ofFigure 1
). The results are similar without the--execute
flag.The widget's div is
which makes it seem as though it should be interactive, so I am not sure why it is static.
I do see some errors in the browser:
Potentially related to #1643 #1666 jupyter-widgets/ipywidgets#3658, but I am seeing this error persist.
Expected
I expect the widget to render as interactive html, equivalent to the notebook output.
Is there a way to get my widget to be interactive in the browser? Thank you in advance!
Potentially relevant packages + versions:
The text was updated successfully, but these errors were encountered: