chartify
Use Spotify Chartify to build tidy pandas/Bokeh charts, route plot workflows, customize styling, and diagnose output/configuration issues.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- chartify
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Spotify Chartify to build tidy pandas/Bokeh charts, route plot workflows, customize styling, and diagnose output/configuration issues.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-overview.md4.2 KB
- 参考文档references/repo-provenance.md2.3 KB
- 参考文档references/repo-routing-metadata.json315 B
- 参考文档references/troubleshooting.md4.9 KB
- 脚本scripts/check_chartify_runtime.py3.5 KB
03 SKILL.md 正文
Chartify Repo Skill
Use this skill when a task names Chartify or asks for a Python data-visualization workflow that matches Chartify's surface: tidy pandas DataFrame inputs, Bokeh-backed charts, simple chart construction, categorical/numeric/datetime/density plots, radar charts, labels/legends/callouts, color palettes, style defaults, or Chartify-specific save/show troubleshooting.
Chartify is a Python library that makes plotting simpler for data scientists. It provides a small top-level API (chartify.Chart, chartify.RadarChart, chartify.color_palettes, chartify.options, and chartify.examples) over Bokeh.
Install and Import Check
pip install chartify
python - <<'PY'
import chartify
print(chartify.__version__)
ch = chartify.Chart(blank_labels=True)
print(type(ch.plot).__name__, type(ch.axes).__name__)
PY
Python support in the source snapshot is >=3.9,<4. Runtime dependencies include pandas, Pillow, Selenium, Bokeh, SciPy, IPython/ipykernel, PyYAML, Jinja2, jupyter-bokeh, and Tornado. PNG/SVG export additionally needs a compatible browser and driver; HTML output is the safest portable check.
Run scripts/check_chartify_runtime.py when you need a quick import/API smoke check, optional HTML save check, or browser-driver probe.
Routing
| User task | Use |
|---|---|
| Create line, scatter, area, text, bar, stacked bar, boxplot, interval, lollipop, parallel, heatmap, histogram, KDE, hexbin, radar, or second-y-axis charts | sub-skills/basic-charting |
Decide x_axis_type/y_axis_type, transform pandas grouped/pivoted data, inspect ch.data, or save/show output |
sub-skills/basic-charting |
| Set title, subtitle, source label, legend, axes, ticks, ranges, factor order, callouts, palettes, style settings, options, or YAML config | sub-skills/styling-annotations |
| Diagnose install/import/Bokeh/Selenium/browser-driver/config issues shared across workflows | references/troubleshooting.md |
| Check whether this generated skill matches a checkout/version | references/repo-provenance.md |
| Inspect top-level package object map and dependency facts | references/api-overview.md |
Core Usage Pattern
- Normalize inputs to a tidy pandas
DataFramewith every plotted dimension as a named column. Usereset_index()aftergroupbyandpd.melt(...)for pivoted data. - Construct
chartify.Chart(...)with axis types that expose the needed plot method. Usex_axis_type='datetime'for datetime x data andx_axis_type='categorical'ory_axis_type='categorical'for categorical charts. - Plot through
ch.plot.<method>(...)using column names, not Series objects. - Apply labels, legends, axes, callouts, and palettes. For advanced styling/configuration, route to
styling-annotations. - Validate with
ch.data, figure properties, or an HTML save. Use PNG/SVG only when the browser-driver requirement is satisfied.
Output and Rendering Notes
ch.show(format='html')andch.save(filename, format='html')are the most portable paths.format='png'andformat='svg'use Bokeh/Selenium browser export. If Chrome/Chromedriver or another compatible browser driver is missing, document the limitation instead of treating core chart construction as failed.- Chartify initializes notebook output when running in a Jupyter kernel, but agents should not rely on notebook display as proof. Prefer object assertions or HTML save checks.
Boundaries
Use this skill for operating Chartify as a library. Do not use it for generic Bokeh-only charting unless the user explicitly wants Chartify. Do not use it for maintaining release infrastructure, docs builds, CI, or repository contribution process unless the user asks to modify the Chartify repository itself; then use general Python repository maintenance guidance plus the provenance file to decide whether the skill is stale.
Evidence and Refresh
The generated skill is self-contained and distills evidence from the source package, examples, docs, notebooks, and tests at the snapshot recorded in references/repo-provenance.md. If the installed Chartify version, public signatures, or source commit differ materially, refresh the skill before relying on edge-case guidance.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).