execute_code
Craft advanced visualizations with linked selections, overlays, and custom widgets by running arbitrarily complex HoloViews/Panel code. Assign the output to result.
Instructions
Execute arbitrary hvPlot/HoloViews/Panel code and return the result.
This is the power-user escape hatch for visualizations that go beyond the structured tools — linked selections, overlays, custom widgets, etc.
The code must assign the final visualization to a variable named result.
Available in scope: pd, np, hv, hvplot, pn, and any loaded datasets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code that produces a HoloViews/Panel object in `result` | |
| dataset_name | No | Optional dataset to make available as `df` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |