AGENT SKILL

visualization-jupyter

Create Vaex histograms, heatmaps, scatter plots, expression plots, saved Matplotlib outputs, and high-level Jupyter widget workflows.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
visualization-jupyter
license
MIT
metadata
{ "disco-role": "operating" }
description
Create Vaex histograms, heatmaps, scatter plots, expression plots, saved Matplotlib outputs, and high-level Jupyter widget workflows.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

visualization-jupyter

Use this sub-skill when the task is to plot or explore Vaex data with df.viz / expression.viz, save Matplotlib output, or work with Vaex's Jupyter widget layer. If the task still needs DataFrame creation, inspection, filtering, or basic lazy semantics before plotting, route that part to ../dataframe-core/SKILL.md. Keep plotting and display separate: if the user needs custom counts, means, correlations, binning, groupby grids, or other precomputed statistics behind a plot, route that work to ../expressions-analytics/SKILL.md; if the user needs REST plot endpoints or remote plot serving, route it to ../serving-remote/SKILL.md.

Load these references

Core operating rules

  1. Use df.viz.histogram, df.viz.heatmap, df.viz.scatter, and expression.viz.histogram for plotting. Treat df.plot1d and direct df.scatter / df.plot aliases as compatibility shims that may warn; prefer the df.viz namespace in new guidance.
  2. Keep analytics separate from presentation. If the task asks for custom counts, means, correlations, binning, groupby grids, or other precomputed statistics behind a plot, send that part to ../expressions-analytics/SKILL.md and use this sub-skill only for rendering or display choices.
  3. For saved figures or CI/server smoke checks, use Matplotlib with the Agg backend and show=False. Use hardcopy= on histogram/heatmap when possible; for scatter, save the current figure explicitly after plotting. Do not require a notebook frontend for terminal checks.
  4. Use selection, limits, shape, what, f, normalize_axis, and facet-style syntax as plotting controls. Treat what as a small expression language such as count(*), mean(x), sum(x), std(x), or correlation(a, b); if the syntax does not parse, fall back to the troubleshooting reference.
  5. Use df.viz.scatter only for small DataFrames or explicitly bounded selections. If the row count is large, choose histogram/heatmap with aggregated grids instead of eager scatter plotting.
  6. For Jupyter, use df.widget accessors at a high level: histogram, heatmap, data_array, expression, column, selection_expression, and progress widgets. Treat bqplot, ipyvolume, ipyleaflet, ipympl, ipyvuetify, ipywidgets, and xarray as frontend dependencies that may be present or absent.
  7. For progress feedback, prefer simple progress, progress='widget' in notebook contexts, or rich tree progress when you need nested task detail. Keep the choice consistent with the execution environment.

Reference map

  • references/visualization-workflows.md: plotting recipes, expression plots, hardcopy/show, facets, and display-vs-computation guidance.
  • references/jupyter-widgets.md: df.widget concepts, widget stack, interactive plot patterns, and frontend behavior.
  • references/troubleshooting.md: deprecation warnings, invalid what/facet syntax, scatter row limits, headless display errors, missing Matplotlib or frontend packages, and progressbar mismatches.

Bundled check

Run the bundled smoke check after editing this sub-skill or when diagnosing an environment:

python scripts/plot_smoke.py --help
python scripts/plot_smoke.py

The script creates tiny in-memory data only, uses public Vaex APIs, writes noninteractive Matplotlib PNGs with the Agg backend, and asserts that each saved file is non-empty.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351