我在Jupyter Notebook中有一个Python程序,它使用模块ipywidgets中的interact。
interact(my_func, filter_by=filter_by_list, format_type=format_dict.keys())我希望有人能够打开某个网站上的笔记本,并使用交互式小工具,而不需要Python或其他任何东西,就像here。
发布于 2018-04-18 14:03:16
你可以访问这个网站:http://ipywidgets.readthedocs.io/en/latest/embedding.html#python-interface
from ipywidgets import IntSlider
from ipywidgets.embed import embed_minimal_html
slider = IntSlider(value=40)
embed_minimal_html('export.html', views=[slider], title='Widgets export')根据文档,它会生成一个export.html文件。
https://stackoverflow.com/questions/43254861
复制相似问题