python-visuals
Skill by data-goblin
Guides an AI assistant to create Python visuals in Power BI PBIR reports using matplotlib and seaborn. It covers adding the visual with the pbir CLI, writing the script, injecting it and validating the result. Aimed at Power BI report builders.
Install python-visuals
Built from the published package, never by AI.
git clone --depth 1 https://github.com/data-goblin/power-bi-agentic-development /tmp/power-bi-agentic-development && mkdir -p ~/.claude/skills && cp -r /tmp/power-bi-agentic-development/plugins/custom-visuals/skills/python-visuals ~/.claude/skills/python-visualsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/data-goblin/power-bi-agentic-development /tmp/power-bi-agentic-development && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/power-bi-agentic-development/plugins/custom-visuals/skills/python-visuals ~/.gemini/antigravity-cli/skills/python-visualsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The python-visuals skill guides an AI assistant through creating Python visuals in Power BI reports stored in PBIR format. It uses the pbir CLI to add a pythonVisual, inject a matplotlib or seaborn script, and validate the result. The skill favours seaborn, requires plt.show() as the final line, and lists the libraries and limits of the Power BI Service and Desktop.
It also explains when a script visual is the right choice. The source says to use Deneb for interactive or cross-filter needs and an SVG measure for small inline marks, and to reserve scripts for statistical computation at render time. The source describes its niche as compute-at-render statistical plots for internal or org consumption. The skill also includes a review step that dispatches a python-reviewer agent before the script is presented.
Written from the project's SKILL.md and checked against it.
What it can do
- Add pythonVisualAdds a Python visual to a PBIR report page with data fields bound to it.
- Write chart scriptProvides matplotlib and seaborn script patterns with plt.show() as the final line.
- Inject scriptInjects a script file into a Python visual using the pbir CLI.
- Validate visualBinds and validates the visual and report using pbir commands.
- Chart patternsCovers common bar, heatmap, donut, KPI and area chart patterns.
- Visual type guidanceHelps decide between a script visual, Deneb and an SVG measure.
What you need
- pbir CLI
- Power BI Desktop or Power BI Service
- Pro, PPU or higher capacity in a Fabric-enabled region for Service use
Try asking
- Create a Python visual with a seaborn chart of monthly revenue
- Add a matplotlib chart to the Sales page of my report
- Write a Python visual script that draws a kernel density plot
Good to know
- Output is a static PNG at 72 DPI with no interactivity.
- Row limit is 150,000 and the Service timeout is 1 minute.
- Plotly, bokeh and altair are not supported in the Power BI Service.
- A Python visual cannot be a cross-filter source or used for publish to web.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/custom-visuals/skills/python-visuals/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to python-visuals
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
python-visuals: common questions
Which libraries can a Python visual use in the Power BI Service?
The source lists matplotlib, seaborn, numpy, pandas, scipy, scikit-learn, statsmodels and pillow with fixed versions. Plotly, bokeh and altair are not supported there.
Can a Python visual be interactive?
No. The source says it renders a static PNG at 72 DPI and cannot be a cross-filter source.
When should I avoid a Python visual?
The source says not to use one just because a chart looks statistical. Box plots, lollipop charts and dumbbell charts are better suited to SVG measures or Deneb.
How do I install python-visuals?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is python-visuals free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is python-visuals safe to use?
It scores 73 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to python-visuals?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
