#python
8 tutorials, projects and news items tagged python.
Advanced tutorial: Use Claude Code and the cook Skill to drive headless Blender. Set the story, style, score line, and time first. Let the agent write a production doc and shot list, generate all 3D with Python, check still frames before batch rendering, link shots with transitions, and do editing, color, and audio in code. Includes 4 copyable prompts.
Use when the user needs matplotlib data charts for a paper, academic talk or defense slides (grouped bars, ablation studies, training curves, heatmaps, multi-panel figures) exported as PNG or PDF vector files. It follows the publication styling of figures4papers (CC BY-NC 4.0, non-commercial use only): consistent fonts, colors, line widths and export settings, using only the user's data and asking first when something is unclear. Not for interactive charts such as Plotly, exploratory plotting, or 3D and map figures. Use case: Let your agent draw your experiment data as bar charts, curve plots and heatmaps that follow top-venue paper figure conventions, ready to drop into a paper.
Advanced tutorial: first decide whether you need a team at all, then build it following an SOP: the orchestrator splits up tasks, specialists each do one thing in parallel, and the reviewer only reads and never edits, acting as the gatekeeper. When dispatching work, spell out everything. Set tools and effort per role, and cap budget, depth, and time. Includes complete Python code and prompts to hand to an Agent for execution.
Developer tutorial on what you need to run the code in Microsoft's AI Agents for Beginners course: forking the repo, Python 3.12, the Azure CLI, a Foundry project with a deployed model, and how to avoid common stumbling blocks.
Advanced tutorial: add claude_cli, codex_cli and fallback LLM providers to xiaozhi-esp32-server, calling the locally logged-in official CLIs, with all tokens handled by the CLI itself. Tool calls use a <tool_call> text protocol and are not spoken aloud. If Claude errors, it automatically switches to Codex, and the failing provider cools down for 300 seconds. Includes full code, configuration, testing methods, and measured latency.
Intermediate tutorial: Don't have the Agent run scheduled tasks by hand every day. Have it write the task as one Python script, hand it to the system's built-in cron or Task Scheduler, and run it at 0 Tokens per run. When the script finishes, it sends you a message saying whether it succeeded or failed.
One command runs the full process and produces a daily research report and dashboard that can be cross-checked, viewed locally or published as a static site.
Turns an SRT subtitle file into a whiteboard hand-drawn animation on a warm cream paper background: subtitles drive elements to appear one by one in narrative order, with zone-mask layout and continuous strokes (outline first, then color), outputting MP4 and saving you from frame-by-frame manual whiteboard animation. Multi-file repo, installed via git clone. Use case: Turn an SRT subtitle file into a subtitle-driven whiteboard hand-drawn animation video with continuous strokes.
