Level to HN: Convert Jupyter Notebook to interactive web app with out coding

28
[favorite_button]
Advertisements

That is the dapper addon ever!!

Mercury

Mercury is the highest intention to flip your Python notebooks
into
interactive web functions and undergo the cloud

Step 1: Invent a notebook

  • Invent a Python notebook as frequent 🖥️
  • Set variables for tweaking in a separate code cell

Create notebook

Step 2: Add YAML config

  • Add YAML config in the first RAW cell
  • Plan app title and outline
  • Add interactive widgets to notebook
  • Widget title ought to be the equivalent as variable 📝
---
title: My app title 🚀
description: Knowledge app with many calculations
params:
    variable:
        input: textual exclaim 
        Sign: Please present textual exclaim
---

Create notebook

Advertisements

Step 3: Commence Mercury

  • Commence Mercury server in the neighborhood
  • Straightforward checklist: mercury urge notebook.ipynb
  • The salvage app is running at http://127.0.0.1/

Start Mercury with command line

Step 4: Net App is ready! 🚀

  • User can tweak widgets’ parameters
  • Click Speed   to enact the notebook with contemporary values
  • Notebook is finished from the head to the bottom

Web App is ready!

Widgets as YAML

Textual exclaim

variable_text:
    input: textual exclaim 
    Sign: That is textual exclaim Sign 
	label: some textual exclaim

Text widget in Mercury

Procure out

variable_select:
    input: set Up 
    Sign: That is set Up Sign 
	label: Cześć
	decisions: [Cześć, Hi, Hello]

Select widget in Mercury

Advertisements

Slider

variable_slider:
    input: slider 
    Sign: That is slider Sign 
    label: 5
    min: 0
    max: 10

Slider widget in Mercury

File

variable_file:
    input: file 
    Sign: That is file Sign 

File upload widget in Mercury

Numeric

variable_numeric:
    input: numeric 
    Sign: That is numeric Sign 
	label: 5.5
    min: 0.0
    max: 10.0
    step: 0.1

Numeric widget in Mercury

Advertisements

Checkbox

variable_checkbox:
    input: checkbox 
    Sign: That is checkbox Sign 
    label: Just

Checkbox widget in Mercury


📚 Take a look at documentation

Mercury multiple notebooks apps

Attend extra than one notebooks

It is probably going you’ll perchance per chance host unlimited different of notebooks apps

  • Portion as many functions as you will want
  • Use constructed-in utility gallery

Level to or veil code 👀

It is probably going you’ll perchance per chance support a notebook with code for technical users.

For non-programmers you may perchance veil the code to no longer scare them 😉

Advertisements

It is miles as easy as environment one parameter convey-code in the YAML

Mercury multiple notebooks apps

Mercury multiple notebooks apps

Mercury multiple notebooks apps

⬇️ Download finished notebook

  • User can tweak parameters and enact the notebook
  • The resulting notebook would per chance be downloaded as single HTML file 💾

Mercury multiple notebooks apps

Advertisements

🔑 Authentication

  • It is probably going you’ll perchance per chance build who can behold your notebooks
  • Put an eye on notebook entry with fragment parameter in YAML
  • Invent users in Admin Panel
  • Stable the connection with SSL

Portion notebook with selected users 👧👦

title: Secret app 
description: My app with secret 
fragment: alice, bob
params:
    # widgets code ...

Portion notebook with authenticated users finest 🔒

title: Secret app 
description: My app with secret 
fragment: private
params:
    # widgets code ...

Embed interactive notebooks

It is probably going you’ll perchance per chance embed your interactive notebooks on any web page.

Below is embedded utility fabricated from notebook

Advertisements

with calculator fabricate vs salvage for Mercury commercial license.

Mercury multiple notebooks apps

Originate Source Core

The core of Mercury is Originate Source below AGPLv3.
We present Mercury Professional with extra aspects, dedicated abet and pleasurable commercial license.

  • It is probably going you’ll perchance per chance utilize Mercury OSS completely free
  • It is miles uncomplicated to self-host on VPS
  • Take a look at Mercury Professional for added aspects

Mercury multiple notebooks apps

Straightforward to deploy

Mercury web framework would per chance be simply deployed in production

  • Deploy to production by copying notebooks and necessities.txt to the server
  • Deploy with mercury urge or docker-manufacture
  • HTTPS abet with certificates from Let’s Encrypt

Mercury demo

Take a look at the demo

Demo at
https://mercury.mljar.com

  • No have to register
  • Demo running several notebooks-apps
  • Running on tiny VPS (2GB RAM and a pair of vCPUs)

Comming soon aspects

We’re working on

  • Download finished notebook as PDF
  • Extra widgets (textual exclaim field, file upload) Carried out!
  • Authentication Carried out!
  • Users permissions Carried out!
  • Scheduling
  • Email notifications

If you may perchance per chance furthermore have characteristic quiz please contact us.

Mercury demo

Put in contact 📨

So as for you to be notified about our merchandise please subscribe to the e-newsletter.


This field makes utilize of cookies.
If you continue having a behold our web page, you gather these cookies.

Extra info
Accept

Read More
Portion this on knowasiak.com to consult with folks on this topicTag in on Knowasiak.com now if you are no longer registered yet.

Advertisements
Charlie
WRITEN BY

Charlie

Fill your life with experiences so you always have a great story to tell
Get Connected!
One of the Biggest Social Platform for Entrepreneurs, College Students and all. Come and join our community. Expand your network and get to know new people!

Discussion(s)

No comments yet
Knowasiak We would like to show you notifications so you don't miss chats & status updates.
Dismiss
Allow Notifications