show
Execute Python code to generate interactive visualizations, plots, and dashboards, then view them in a browser via a unique URL.
Instructions
Display Python code visualization in a browser.
This tool executes Python code and renders it in a Panel web interface, returning a URL where you can view the output. The code is validated before execution and any errors are reported immediately.
Use this tool whenever the user asks to show, display, visualize data, plots, dashboards, and other Python objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The Python code to execute. For "jupyter" method, the last line is displayed. For "panel" method, objects marked .servable() are displayed. | |
| name | No | A name for the visualization (displayed in admin/feed views) | |
| description | No | A short description of the visualization | |
| method | No | Execution mode: - "jupyter": Execute code and display the last expression's result. The last expression must be dedented fully. DO use this for standard data visualizations like plots, dataframes, etc. that do not import and use Panel directly. - "panel": Execute code and display Panel objects marked .servable() DO use this for code that imports and uses Panel to create dashboards, apps, and complex layouts. | jupyter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |