admin管理员组文章数量:1290966
I have a Python program in Jupyter Notebook that uses interact
from the module ipywidgets
.
interact(my_func, filter_by=filter_by_list, format_type=format_dict.keys())
I want someone to be able to open the notebook on a website somewhere and use the interactive widget without requiring Python or anything else, just like here.
I have a Python program in Jupyter Notebook that uses interact
from the module ipywidgets
.
interact(my_func, filter_by=filter_by_list, format_type=format_dict.keys())
I want someone to be able to open the notebook on a website somewhere and use the interactive widget without requiring Python or anything else, just like here.
Share Improve this question edited Apr 7, 2017 at 23:16 Imran asked Apr 6, 2017 at 12:10 ImranImran 6561 gold badge11 silver badges20 bronze badges1 Answer
Reset to default 7You can check out this website: 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')
According to the docs it produces an export.html file.
本文标签: javascriptExporting ipywidgets to a websiteStack Overflow
版权声明:本文标题:javascript - Exporting ipywidgets to a website - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741501422a2382073.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论