Skip to content

Add Panel Live Server blog post#101

Merged
ahuang11 merged 10 commits into
mainfrom
sumaiya_blog
Jun 30, 2026
Merged

Add Panel Live Server blog post#101
ahuang11 merged 10 commits into
mainfrom
sumaiya_blog

Conversation

@SuMayaBee

Copy link
Copy Markdown
Collaborator

Adds a blog post introducing Panel Live Server, covering the MCP server and standalone server modes, installation, MCP client setup, and architecture.

@SuMayaBee SuMayaBee requested a review from ahuang11 June 5, 2026 17:03
@ahuang11

ahuang11 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor
image

AI oroups.

Comment thread posts/panel_live_server/index.md Outdated
Comment thread posts/panel_live_server/index.md
Comment thread posts/panel_live_server/index.md
@SuMayaBee SuMayaBee requested a review from ahuang11 June 5, 2026 17:35
@SuMayaBee

Copy link
Copy Markdown
Collaborator Author

@ahuang11 I have addressed the reviews.

  1. Rewrite the panel-live-server description with proper context
  2. Kept the Try it Out section as you suggested later
  3. Regenerate the image with proper code snippets
  4. Added Marc's contribution

@SuMayaBee

Copy link
Copy Markdown
Collaborator Author

@ahuang11 I have added the screenshot tool in the blog.

Comment thread posts/panel_live_server/index.md Outdated

**Panel Live Server** removes that friction. When connected to an MCP-compatible AI assistant like Claude, VS Code, or Cursor via the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/), you can point it at a dataset file or a URL and ask for a visualization directly in the chat. The assistant generates the code, Panel Live Server executes it, and the result comes back as a live, interactive visualization rendered inline in the chat via iframe, without leaving your IDE. You can also use it standalone from the terminal, submitting code through a browser UI and getting a persistent URL back instantly.

![](images/pls.png)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd swap this with {{< video images/pls-mcp.mp4 >}}

Architecture can be a later thing, first show off what it can do.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread posts/panel_live_server/index.md Outdated
- **`list_packages`**: lists the Python packages installed in the server environment. Called once at the start of a session so the AI knows exactly what libraries it can use before writing any code.
- **`validate`**: validates code before rendering. Runs five checks in sequence: syntax, security, package availability, Panel extension declarations, and a runtime execution test. Returns a structured error with recovery hints on failure, or caches the result on success so `show` can reuse it at zero cost.
- **`show`**: executes the code and renders it as a live, interactive visualization, returning a URL. The user gets a real interactive page, not a static image.
- **`screenshot`**: captures a PNG of an already-rendered visualization and returns it to the AI. This lets the model answer visual questions ("which bar is tallest?", "what color is X?") from the actual rendered pixels, not just the source code.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(“which bar is tallest?”, “what color is X?”)

The more applicable use case is to give the LLM vision, i.e. if the margins were visually inconsistent, you can simply mention that and the LLM would "see" that, vs editing the code blind.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice point, updated to emphasize the vision capability.

@ahuang11 ahuang11 merged commit 0ab2286 into main Jun 30, 2026
2 checks passed
@ahuang11 ahuang11 deleted the sumaiya_blog branch June 30, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants