2

I'm quite experienced using Jupyter and running Python scripts with it. But I'm trying to figure out how to host Jupyter on a Cloud host for instance Digital Ocean and use it as an engine to analyse inputs and data on the web. Let me explain better; Assuming I want a public user to input a sample data. On the webpage, a typical users sees a blank form field to input his name. At the back end, Jupyter accepts the inputted string, runs and output the result back to the webpage. Typically on Jupyter, I would run the code below:

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

This is what is expected to happen on the web, User webpage as you can see the user does not see Jupyter.

enter image description here

If anyone has a guide or maybe pointing to a detailed tutorial or link will also be of good help too.

Zion Oyemade
  • 433
  • 6
  • 17
  • What can Jupyter do that plain Python can't do? Look up some Python web frameworks like Django or Flask. – daviewales Mar 05 '18 at 22:21
  • 1
    I agree with you, however there is no harm in exploring the possibilities. Quite a lot of Data Scientists use Jupyter and in some cases exclusively. It would be nice to open up the possibility of interacting with the public on Data Science issues and outputting answers instantaneously. – Zion Oyemade Mar 06 '18 at 08:31
  • Fair enough. You could install Django or Flask alongside Jupyter. Then you would be able to run them from Jupyter. – daviewales Mar 06 '18 at 22:35
  • Is your question "How can I install Jupyter on a cloud host?" or is it "How can I use Jupyter to run a web server and process web forms?" – daviewales Mar 06 '18 at 22:39

1 Answers1

0

You could try Voila. It runs any IPython notebook as a Tornado web app. Many examples are provided in the repo and in Voila Gallery.

eirenikos
  • 2,296
  • 25
  • 25