Skip to content

docs: enhance matplotlib backend guidance in panel skills#104

Merged
MarcSkovMadsen merged 1 commit into
mainfrom
feature/update-matplotlib-docs
Jan 17, 2026
Merged

docs: enhance matplotlib backend guidance in panel skills#104
MarcSkovMadsen merged 1 commit into
mainfrom
feature/update-matplotlib-docs

Conversation

@MarcSkovMadsen

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 17, 2026 06:11
@MarcSkovMadsen MarcSkovMadsen merged commit 53e5a55 into main Jan 17, 2026
7 of 13 checks passed

Copilot AI left a comment

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.

Pull request overview

This PR enhances the documentation for using matplotlib with Panel by adding comprehensive guidance on backend configuration, extension usage, and best practices. Additionally, it corrects the tool namespace reference in the HoloViz Analysis Planner agent configuration.

Changes:

  • Added new matplotlib section to Panel skills documentation with backend configuration guidance and code examples
  • Updated agent configuration to use correct tool namespace pattern (holoviz/* instead of holoviz-dev/*)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/holoviz_mcp/config/resources/skills/panel.md Added matplotlib section with guidance on 'agg' backend configuration, pn.extension() usage, and best practices for static plots
.github/agents/holoviz-analysis-planner.agent.md Corrected tool namespace from 'holoviz-dev/' to 'holoviz/' to match actual MCP server tool naming convention


### Matplotlib

**CRITICAL**: On windows set non-interactive backend before importing matplotlib.pyplot:

Copilot AI Jan 17, 2026

Copy link

Choose a reason for hiding this comment

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

The guidance incorrectly suggests that setting the 'agg' backend is only necessary on Windows. The 'agg' backend should be set on all platforms when using matplotlib with Panel for server-side rendering, not just Windows. Consider revising to: "CRITICAL: Set non-interactive backend before importing matplotlib.pyplot:" or "CRITICAL: When using Panel with matplotlib, set non-interactive backend before importing matplotlib.pyplot:"

Suggested change
**CRITICAL**: On windows set non-interactive backend before importing matplotlib.pyplot:
**CRITICAL**: When using Panel with matplotlib, set a non-interactive backend (e.g. `'agg'`) before importing matplotlib.pyplot:

Copilot uses AI. Check for mistakes.

### Matplotlib

**CRITICAL**: On windows set non-interactive backend before importing matplotlib.pyplot:

Copilot AI Jan 17, 2026

Copy link

Choose a reason for hiding this comment

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

The word "windows" should be capitalized to "Windows" when referring to the operating system.

Suggested change
**CRITICAL**: On windows set non-interactive backend before importing matplotlib.pyplot:
**CRITICAL**: On Windows set non-interactive backend before importing matplotlib.pyplot:

Copilot uses AI. Check for mistakes.
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