Save iPython Jupyter Notebook Widgets to PNG/PDF/JPG/GIF

怎甘沉沦 提交于 2021-02-08 19:50:15

问题


I was just wondering, if there's some way how to automatically save the content of the cell (including the cell output) to a PNG/PDF/JPG/GIF. I'd be happy with any of the alternatives. For documentation purposes I'd like to save the state of a VBox/Hbox containing multiple iPython Widgets. There are many possible combinations of the widgets settings, I can iterate over these settings with my code, but I'd like the corresponding visual setting of the widgets to any of the possible above mentioned formats for documentation purposes. I've looked into html2canvas, but I'm not sure if it's the right solution for me. As well, using the ipython convert to HTML doesn't output the widgets for me. Many thanks in advance for any hint. Regards

Josef

来源:https://stackoverflow.com/questions/54441389/save-ipython-jupyter-notebook-widgets-to-png-pdf-jpg-gif

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!