惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
爱范儿
爱范儿
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
博客园 - 聂微东
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
宝玉的分享
宝玉的分享
罗磊的独立博客
Jina AI
Jina AI

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - mljar/mercury: Create web apps from Python noteb...
pplonski86 · 2026-05-22 · via Hacker News: Show HN
 _ __ ___   ___ _ __ ___ _   _ _ __ _   _
| '_ ` _ \ / _ \ '__/ __| | | | '__| | | |
| | | | | |  __/ | | (__| |_| | |  | |_| |
|_| |_| |_|\___|_|  \___|\__,_|_|   \__, |
                                     __/ |
                                    |___/ 

Mercury is a framework that helps you build interactive web applications directly from Python notebooks. You can build with Mercury data rich applications, like: chats, AI agents, dashboards and reports.

Why?

Mercury is the easiest way to built and deploy data rich apps with Python. There are no callbacks in the framework. Widget interactions fire cells re-execution (reactive notebooks). You don't need to worry about UI because there is predefined layout, so it will look beautiful.

What is included:

  • collection of widgets, so you can build interactive web apps,
  • standalone server, to serve notebooks as web apps,
  • JupyterLab extension, to have live app preview during development.

The Mercury live app preview extension is available only for JupyterLab and MLJAR Studio. It will not work in Google Colab and VS Code - sorry guys!

Example - Echo chat bot

Example bot app that will respond with echo:

# import package
import mercury as mr
# create Chat widget
chat = mr.Chat()
# create chat prompt
prompt = mr.ChatInput()
if prompt.value:
    # user message
    user_msg = mr.Message(prompt.value, role="user")
    chat.add(user_msg)

    # assistant message (echo)
    response_msg = mr.Message(
        f"Echo: {prompt.value}",
        role="assistant",
        emoji="🤖",
    )
    chat.add(response_msg)

Live App Preview

Yes, you can preview the app during development. Please click 🎉 in the top notebook toolbar to open preview.

Production App

You can serve your notebook as standalone web app:

Installation

Start server with the following command:

By default, it will detect all notebooks in the current directory and serve them as web apps.

To serve notebooks from a different directory and make relative paths resolve from there:

mercury --working-dir /path/to/notebooks

You can combine it with a notebook argument:

mercury app.ipynb --working-dir /path/to/notebooks

Example view of notebooks home page:

Deployment

Here is minimal Dockerfile to serve Mercury:

FROM python:3.12-slim

# Install Mercury
RUN pip install mercury

# You can also install needed packages here,
# For example install pandas
# RUN pip install pandas

# Directory where notebooks will be mounted
WORKDIR /workspace

# Mercury default port
EXPOSE 8888

# Start Mercury server
CMD ["mercury", "--ip=0.0.0.0", "--no-browser", "--allow-root"]

We also offer managed cloud service for 1-click app deployment. Please check our website platform.mljar.com.

Run at click (disable auto re-run)

Maybe you don't want to re-execute cells after widget update and would like to run all cells from top to the bottom on the button click. You can disable auto re-rerun by unchecking it in app preview in the top toolbar. Your web app will have added Run button in the sidebar that will trigger cells re-execution.

Notebook appearance in home page

In the app preview toolbar you can also set:

  • notebook title and description, they are displayed in the home page,
  • emoji and colors of icon in the home page,
  • you can display notebook code - useful for teachers 👍,
  • go app full width.

Authentication

You can restrict access to your web apps by setting password when starting server:

mercury --pass=your-secret-here

Before opening the notebook user needs to provide the password:

If you want to have user-based authentication in your Mercury. It is paid option. Please reach us for more details contact - at - mljar.com

Configuration and customization

We want you to customize your web apps so they look and feel exactly the way you like.

To do this, create a file called config.toml in the active notebooks directory. By default, this is the current directory. If you start Mercury with --working-dir, place config.toml there instead.

[main]
title = "Mercury"
footer = "MLJAR - next generation of AI tools"
favicon_emoji = "🎉"

[welcome]
header = ""
message = ""

What you can customize

  • title – the title of your web app
  • footer – text shown at the bottom of the page
  • favicon_emoji – emoji shown as the browser tab icon
  • welcome.header – optional welcome header
  • welcome.message – optional welcome message for users

Feel free to change these values and make the app your own.

We are actively working on adding more customization options. If something is missing or you would like to customize more things, please let us know - your feedback really matters to us 🚀

Arguments

Would you like to see more logs from mercury, please use --log-level=INFO or --log-level=DEBUG. The default log level is CRITICAL.

We have option to share the same session between multiple users. What does it mean? You can deploy app, and when you click on it, others will see this. The enable session sharing please use --keep-session. Amazing, isn't it?

Would you like to limit your server resources with usage timeout? Please set --timeout=600, the timeout value is in seconds. Be generous.

Would you like Mercury to use a specific directory as the base for notebooks, config.toml, and relative file access? Please use --working-dir=/path/to/notebooks.

Previous versions

If you are looking for previous version codebase, the stable v2 codebase is available on the v2.4.3 tag.

Previous documentation webpage is available at old.runmercury.com.

License

Mercury is licensed under Apache-2.0. See LICENSE for details.


Stay safe! ❤️