Hi @Alexboiboi,
Here’s an approach that works for me.
- Run the notebook using the classic JupyterNotebook (not JupyterLab)
- Save notebook using the “Widgets -> Save Notebook Widgets State” menu item
- Use nbconvert on the command line to convert the notebook to HTML (See https://github.com/jupyter/nbconvert). I have
nbconvert
version 5.4.0 installed.
$ jupyter nbconvert --to html mynotebook.ipynb
As far as I know, it’s not yet possible to save the notebook widget state to the notebook using JupyterLab. And the notebooks own “File -> Download As -> HTML” doesn’t embed the widget info inte exported HTML.
Also note that unlike the iplot
approach, the widget JavaScript libraries are pulled form a CDN not embedded in the notebook. So the produced HTML files will require an internet connection.
Hope that helps!
-Jon