Tutorial: Installation¶
In this tutorial you'll install Panel Live Server so that the pls command is available in your
terminal. By the end, pls --version will print the installed version.
What You'll Need¶
Install Panel Live Server¶
Initialize a project:
Install:
Install the browser the screenshot tool needs:
Find the pls path:
macOS / Linux:
Windows:
Install:
Install the browser the screenshot tool needs:
Find the pls path:
macOS / Linux:
Windows:
Create and activate a virtual environment.
macOS / Linux:
Windows (PowerShell):
Windows (Command Prompt):
Install:
Install the browser the screenshot tool needs:
Find the pls path:
macOS / Linux:
Windows:
The core install ships the HoloViz visualization stack — hvplot, holoviews, panel, and bokeh.
The [pydata] extra adds the wider PyData ecosystem on top:
matplotlib · plotly · seaborn · altair · polars · duckdb · datashader · geoviews · plotnine · pyarrow · scikit-learn · and more
Only need the core server?
Install without extras if you only want to serve your own code and manage packages yourself:
Verify the installation¶
You should see the installed version printed. If the command is not found, ensure your uv tools
directory is on your PATH, run uv tool update-shell and restart your terminal.
Connect to your MCP client¶
Add to .vscode/mcp.json (create if it doesn't exist):
{
"servers": {
"panel-live-server": {
"type": "stdio",
"command": "/path/to/pls",
"args": ["mcp"]
}
}
}
Use your absolute path
Replace "command": "/path/to/pls" with the path printed by which pls above,
e.g. "command": "/home/user/.local/bin/pls"
Add to ~/.cursor/mcp.json:
Use your absolute path
Replace "command": "/path/to/pls" with the path printed by which pls above,
e.g. "command": "/home/user/.local/bin/pls"
Open Cursor Settings → MCP and verify the green dot. Use Agent mode in chat.
Edit the config file for your OS:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Use your absolute path
Replace "command": "/path/to/pls" with the path printed by which pls above,
e.g. "command": "/home/user/.local/bin/pls"
Restart Claude Desktop.
Enable the connector in Cowork
To use the show tool from Cowork, open Customize → Connectors →
panel-live-server and set its permission to Always Allow (runs
without prompting) or Needs approval (asks before each call). If the
connector is left disabled, the tool won't be available in Cowork.
Use your absolute path
Replace /path/to/pls with the path printed by which pls above,
e.g. claude mcp add panel-live-server -- /home/user/.local/bin/pls mcp
claude.ai requires HTTP transport and a public URL. You can use any tunneling service (ngrok, Cloudflare, localhost.run, etc.); this example uses Cloudflare.
Terminal 1: start the MCP server:
Use your absolute path
Replace /path/to/pls with the path printed by which pls above,
e.g. /home/user/.local/bin/pls mcp --transport http --port 8001
Terminal 2: tunnel for the MCP server:
Terminal 3: tunnel for the Panel server:
Stop Terminal 1, then set the Panel tunnel URL.
macOS / Linux:
Windows (PowerShell):
And restart:
Then go to claude.ai → Settings → Connectors → Add custom connector and enter
<url-from-terminal-2>/mcp as the URL.
Once connected, ask your AI: "Show me a scatter plot of this data using the show tool."
Without an AI assistant: use the REST API or the browser UI directly.
Add packages to the server environment¶
Panel Live Server executes your Python snippets using the packages installed in the environment you installed it into. It inherits that environment rather than defining its own, so you are free to add or upgrade anything you need there. To add a package:
For example, to add prophet:
You can chain multiple --with flags:
Activate the environment you installed pls into, then install as usual:
For example, to add prophet:
No server restart is needed, the package is available immediately the next time the server starts.
What You've Learned¶
- Install Panel Live Server as a uv tool with the
[pydata]extras - Verify the installation with
pls --version - Add extra packages to the server environment with
--with
Next Steps¶
- Use the standalone server: create, view, and manage visualizations
- Use the MCP server: enable AI assistants to render visualizations in your IDE