从交互式 Jupyter Notebook 创建 webapp 的最简单方法是什么? [英] What is the easiest way to create a webapp from an interactive Jupyter Notebook?

查看:24
本文介绍了从交互式 Jupyter Notebook 创建 webapp 的最简单方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Jupyter Notebook,可以绘制一些数据并让用户通过滑块与之交互.

I have a Jupyter Notebook that plots some data and lets the user interact with it via a slider.

制作具有类似功能的网络应用程序的最简单方法是什么?(重复使用尽可能多的代码...)

What would be the easiest way to make a web app with a similar functionality? (reusing as much of the code...)

推荐答案

我相信最简单的方法是使用 .

I believe the easiest way is to use voilà.

安装后你只需要运行:

voila <path-to-notebook> <options>

并且您将有一个服务器将您的笔记本作为 Web 应用程序运行,并省略所有输入代码.

And you will have a server running your notebook as a web app, with all the input code omitted.

这篇关于从交互式 Jupyter Notebook 创建 webapp 的最简单方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆