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
- 参考文档references/jupyter-widgets.md3.6 KB
- 参考文档references/troubleshooting.md5.1 KB
- 参考文档references/visualization-workflows.md4.6 KB
- 脚本scripts/plot_smoke.py4.7 KB
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
- references/visualization-workflows.md
- references/jupyter-widgets.md
- references/troubleshooting.md
- scripts/plot_smoke.py
Core operating rules
- Use
df.viz.histogram,df.viz.heatmap,df.viz.scatter, andexpression.viz.histogramfor plotting. Treatdf.plot1dand directdf.scatter/df.plotaliases as compatibility shims that may warn; prefer thedf.viznamespace in new guidance. - 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.mdand use this sub-skill only for rendering or display choices. - For saved figures or CI/server smoke checks, use Matplotlib with the
Aggbackend andshow=False. Usehardcopy=on histogram/heatmap when possible; for scatter, save the current figure explicitly after plotting. Do not require a notebook frontend for terminal checks. - Use
selection,limits,shape,what,f,normalize_axis, and facet-style syntax as plotting controls. Treatwhatas a small expression language such ascount(*),mean(x),sum(x),std(x), orcorrelation(a, b); if the syntax does not parse, fall back to the troubleshooting reference. - Use
df.viz.scatteronly for small DataFrames or explicitly bounded selections. If the row count is large, choose histogram/heatmap with aggregated grids instead of eager scatter plotting. - For Jupyter, use
df.widgetaccessors at a high level:histogram,heatmap,data_array,expression,column,selection_expression, and progress widgets. Treatbqplot,ipyvolume,ipyleaflet,ipympl,ipyvuetify,ipywidgets, andxarrayas frontend dependencies that may be present or absent. - 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.widgetconcepts, widget stack, interactive plot patterns, and frontend behavior.references/troubleshooting.md: deprecation warnings, invalidwhat/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
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).