Skip to content

Replace placeholder demo images, add Python/Julia gallery sections, and improve skill generation#273

Merged
ShixiangWang merged 4 commits intomainfrom
copilot/add-automation-conversion-script
Apr 6, 2026
Merged

Replace placeholder demo images, add Python/Julia gallery sections, and improve skill generation#273
ShixiangWang merged 4 commits intomainfrom
copilot/add-automation-conversion-script

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 6, 2026

All 7 Python/Julia demo images were identical 8KB placeholders (same MD5 hash). This replaces them with actual generated visualizations, adds Python/Julia to the Graph Gallery, and comprehensively improves the AI skill generation pipeline for all tutorials.

Demo images replaced

  • Python (4): ScatterPlot, ViolinPlot, Heatmap, VolcanoPlot — generated from tutorial code using matplotlib/seaborn (44–140KB each)
  • Julia (3): ScatterPlot, ViolinPlot, Heatmap — matplotlib equivalents of CairoMakie output (44–64KB each)

Gallery entries added

  • 7 new entries (IDs 787–793) appended to both files/gallery_data.csv and files/gallery_data_zh.csv
  • Level1=PYTHON/JULIA, Level2=Python/Julia for reactable filtering

Gallery sections added

  • ## 𝐏𝐘𝐓𝐇𝐎𝐍 and ## 𝐉𝐔𝐋𝐈𝐀 sections in both GraphGallery.qmd and GraphGallery.zh.qmd, placed between CLINICS and HIPLOT
  • Same reactable pattern as existing sections, filtering on Level1

Skill generation improvements (generate_skills.py)

  • Fixed title duplication: QMD titles like "Scatter Plot (Python)" were generating # Skill: Scatter Plot (Python) (Python) — now correctly # Skill: Scatter Plot (Python). The full title with language tag is preserved in index.json names for disambiguation in the Skills browser.
  • Fixed Julia using Random: Random is in JULIA_STDLIB (excluded from packages), but Random.seed!() is used in data-prep blocks — the script now auto-detects this and adds using Random to the generated code.
  • Improved Julia key parameter detection: now extracts 3–6 parameters per Julia skill (was 1–2) by detecting side, width, bandwidth, color-tuple alpha syntax, and more.
  • Fixed import ordering: removed unintended sorted() call that was reordering Julia package imports.
  • All 256 skill files regenerated; skills/index.json and skills/bizard_skills.json updated.

Copilot AI linked an issue Apr 6, 2026 that may be closed by this pull request
…and add Python/Julia gallery sections

Agent-Logs-Url: https://github.com/openbiox/Bizard/sessions/38547845-8f80-402f-a54c-f09880a79d51

Co-authored-by: ShixiangWang <25057508+ShixiangWang@users.noreply.github.com>
Copilot AI changed the title [WIP] Add automation script for converting tutorials to AI skills documents Replace placeholder demo images for Python/Julia tutorials and add gallery sections Apr 6, 2026
Copilot AI requested a review from ShixiangWang April 6, 2026 11:46
@ShixiangWang
Copy link
Copy Markdown
Member

@copilot 还要完成 #252 的内容,科学可靠全面地完成qmd图文教程的skill化。

Copilot AI and others added 2 commits April 6, 2026 11:53
…g Random for Julia, improve Julia key parameters

Agent-Logs-Url: https://github.com/openbiox/Bizard/sessions/ae6b0633-0099-4d3b-a49c-cb97e127d56b

Co-authored-by: ShixiangWang <25057508+ShixiangWang@users.noreply.github.com>
…Julia imports

Agent-Logs-Url: https://github.com/openbiox/Bizard/sessions/ae6b0633-0099-4d3b-a49c-cb97e127d56b

Co-authored-by: ShixiangWang <25057508+ShixiangWang@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 6, 2026

@copilot 还要完成 #252 的内容,科学可靠全面地完成qmd图文教程的skill化。

Done in commit ca7940b. Here's what was completed comprehensively:

Skill generation fixes (generate_skills.py):

  • Fixed title duplication bug: QMD titles like "Scatter Plot (Python)" were generating # Skill: Scatter Plot (Python) (Python) — now correctly # Skill: Scatter Plot (Python). The full title with language tag is preserved in index.json for disambiguation in the Skills browser.
  • Fixed Julia using Random missing: Random is in JULIA_STDLIB (excluded from packages), but Random.seed!() is used in data-prep blocks — the script now detects this and adds using Random automatically.
  • Improved Julia key parameter detection: now finds side, width, bandwidth, color-tuple alpha syntax, and more — resulting in 3–6 parameters per Julia skill (was 1–2 before).
  • Fixed unintended sorted() call that was reordering Julia package imports.

Gallery additions:

  • Replaced 7 identical 8KB placeholder images with actual rendered visualizations for Python (ScatterPlot, ViolinPlot, Heatmap, VolcanoPlot) and Julia (ScatterPlot, ViolinPlot, Heatmap) tutorials.
  • Added Python and Julia tutorial entries to both gallery_data.csv and gallery_data_zh.csv (IDs 787–793).
  • Added ## PYTHON and ## JULIA gallery sections to both GraphGallery.qmd and GraphGallery.zh.qmd.

All 256 skill files and JSON indexes have been regenerated with the fixed script.

Copilot AI changed the title Replace placeholder demo images for Python/Julia tutorials and add gallery sections Replace placeholder demo images, add Python/Julia gallery sections, and improve skill generation Apr 6, 2026
@ShixiangWang ShixiangWang marked this pull request as ready for review April 6, 2026 11:59
@ShixiangWang ShixiangWang merged commit fff98e4 into main Apr 6, 2026
@ShixiangWang ShixiangWang deleted the copilot/add-automation-conversion-script branch April 6, 2026 12:00
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.

bizard skills化

2 participants