Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/how-to/customize-ai-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Every section can be customised:
| Section | What it covers |
| --- | --- |
| `intro` | The one-line description of what the server does |
| `workflow` | How `show`, `screenshot`, `edit`, and `evaluate` relate, and that validation is automatic |
| `workflow` | How `show`, `screenshot`, `edit`, and `evaluate` relate, that validation is automatic, and when to defer to the `developing-with-holoviz` skill |
| `file_policy` | Not writing visualization code out to files |
| `library_selection` | Which plotting libraries the AI should reach for |
| `rendering` | Panel reactive patterns, and clients that link out instead of embedding |
Expand Down
3 changes: 3 additions & 0 deletions src/panel_live_server/templates/prompts/instructions.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
{% block intro %}Panel Live Server executes Python code snippets and renders the resulting visualizations as live, interactive web pages.{% endblock %}

{% block workflow %}WORKFLOW:
Before writing hvPlot, HoloViews, or Panel code, call the `developing-with-holoviz`
skill if it is installed, even in addition to a general chart/design skill. Not
needed for Bokeh, ECharts, or deck.gl, which this prompt already covers.
`show(code, name, method)` renders a visualization and gives it to the user.
`screenshot(code=...)` renders one and returns the picture to YOU only — nothing
reaches the chat and nothing is added to the user's feed.
Expand Down
Loading