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
Using the nbconvert tool, it would be nice be able to export notebooks containing Vega plots in html (and rst) format. For static plots it just works, but for good reasons all the interactive features of a plot disappear. Links to the d3 and vega javascript libraries need to be added to the HTML template that is passed to nbconvert, and some magic to preserve the plot specification also need to happen in the preprocessing and conversion steps.
Are you able to offer advice on how to write such magic? By calling the private functions _generate_html and _generate_js on the vega.vega.Vega object I can get the relevant snippets of code, but my knowledge about Jupyter and nbconvert is not deep enough to understand how I can make them survive through to the output HTML.
The text was updated successfully, but these errors were encountered:
I'm not certain, but FYI this repo will soon be deprecated. Jupyter integration of vega will be moving to https://github.com/altair-viz/jupyterlab_vega/ (using a fundamentally different approach for compatibility with JupyterLab), so any solution to this issue should be explored there.
Using the
nbconvert
tool, it would be nice be able to export notebooks containing Vega plots in html (and rst) format. For static plots it just works, but for good reasons all the interactive features of a plot disappear. Links to thed3
andvega
javascript libraries need to be added to the HTML template that is passed tonbconvert
, and some magic to preserve the plot specification also need to happen in the preprocessing and conversion steps.Are you able to offer advice on how to write such magic? By calling the private functions
_generate_html
and_generate_js
on thevega.vega.Vega
object I can get the relevant snippets of code, but my knowledge about Jupyter and nbconvert is not deep enough to understand how I can make them survive through to the output HTML.The text was updated successfully, but these errors were encountered: