That is the dapper addon ever!!
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
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 ---
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/
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
Widgets as YAML
Textual exclaim
variable_text: input: textual exclaim sign: That is textual exclaim sign label: some textual exclaim
Procure out
variable_select: input: set up sign: That is set up sign label: Cześć decisions: [Cześć, Hi, Hello]
Slider
variable_slider: input: slider sign: That is slider sign label: 5 min: 0 max: 10
File
variable_file: input: file sign: That is file sign
Numeric
variable_numeric: input: numeric sign: That is numeric sign label: 5.5 min: 0.0 max: 10.0 step: 0.1
Checkbox
variable_checkbox: input: checkbox sign: That is checkbox sign label: Just
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 😉
It is miles as easy as environment one parameter convey-code
in the YAML
⬇️ Download finished notebook
- User can tweak parameters and enact the notebook
- The resulting notebook would per chance be downloaded as single HTML file 💾
🔑 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
with calculator fabricate vs salvage for Mercury commercial license.
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
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
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!AuthenticationCarried out!Users permissionsCarried out!- Scheduling
- Email notifications
If you may perchance per chance furthermore have characteristic quiz please contact us.
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.