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
{{ message }}
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
Currenlty, to show Altair plots created with the data_server enabled in other environments such as JupyterBook, I put something like this in my notebooks to fall back to an svg representation of the plot:
The downside with this is that it makes subsequent plots static, even if I switch from the data_server transformer to the default one and I need to manually change the renderer back with alt.renderers.enable('default') or alt.renderers.enable('altair_saver', fmts=['vega-lite', 'svg']) to show these plots.
I think it would be neat with a renderer format that inserts an html blurb only if the data_server is not activated (by checking alt.data_transformers.active and otherwise uses another format (could be called something like html_data_server). Even better would be if the default html format could somehow detect if there is not a live Python kernel running and if data_server was used, and if both those are true, remove the HTML spec instead of showing the empty chart)
The text was updated successfully, but these errors were encountered:
We are going to archive this repo, so I'm closing all the open issues and PRs before doing so. Try out the new options for saving charts mentioned above and if you run into issues, please open an issue directly in the altair or vl-convert repo.
Currenlty, to show Altair plots created with the data_server enabled in other environments such as JupyterBook, I put something like this in my notebooks to fall back to an svg representation of the plot:
The downside with this is that it makes subsequent plots static, even if I switch from the data_server transformer to the default one and I need to manually change the renderer back with
alt.renderers.enable('default')
oralt.renderers.enable('altair_saver', fmts=['vega-lite', 'svg'])
to show these plots.I think it would be neat with a renderer format that inserts an html blurb only if the data_server is not activated (by checking
alt.data_transformers.active
and otherwise uses another format (could be called something likehtml_data_server
). Even better would be if the defaulthtml
format could somehow detect if there is not a live Python kernel running and if data_server was used, and if both those are true, remove the HTML spec instead of showing the empty chart)The text was updated successfully, but these errors were encountered: