如何使用Jupyter来运行Web服务器和处理Web表单?

问题描述 投票:1回答:1

我在使用Jupyter和运行Python脚本方面很有经验。但我想知道如何将Jupyter托管在云主机上,例如Digital Ocean,并将其作为一个引擎来分析网络上的输入和数据.让我解释一下;假设我想让一个公众用户输入一个样本数据,在网页上,一个典型的用户看到一个空白的表格字段来输入他的名字。在后端,Jupyter接受输入的字符串,运行并将结果输出到网页上.通常在Jupyter上,我会运行以下代码。

x = input("What is your surname")
if x[0] > G:
    print(" Please proceed to Section C")

这是在网络上预计会发生的事情。用户网页 如你所见,用户没有看到Jupyter。

enter image description here

如果谁有指导或者也许指出一个详细的教程或链接也会有很好的帮助。

python python-3.x jupyter-notebook jupyter cloud-hosting
1个回答
0
投票

你可以试试 . 它作为一个Tornado web应用运行任何IPython笔记本。许多例子在 repo 和 the Voila画廊.

© www.soinside.com 2019 - 2024. All rights reserved.