简体   繁体   English

如何保存交互式绘图?

[英]How to save an interactive plot?

I'm creating an interactive plot using Pywedge Bibliothek in jupyter notebook using this code我正在使用此代码在 jupyter notebook 中使用 Pywedge Bibliothek 创建交互式绘图

x=pw.Pywedge_Charts(df, c=None, y='Number_Trips')
charts=x.make_charts()
charts

an example of the output is as follows输出示例如下每天的行程

and i can desactivate as well as activate the day i want to see.. my question is how can i save it and keep it interactive to use it in a website or if it is even possible?我可以停用和激活我想看到的那一天.. 我的问题是我如何保存它并保持它的交互性以在网站中使用它,或者是否有可能?

The way to save interactivity is to save the source of df and the code to generate the plot.保存交互性的方法是保存df的源代码和生成绘图的代码。 To open an interactive plot, run the script that generates it.要打开交互式绘图,请运行生成它的脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM