Create a project
Create the dir
> class_project/create_project.py ---dst_dir tutorials/pgmpyCommit the changes
> git add tutorials/pgmpy > git commit -am "Add template" > git pushEdit
requirements.txtto add the packages pinning down to the last version of the important packagesBuild the container
> docker_build.shEdit
tutorials/pgmpy/pgmpy*.py
Create a Tutorial¶
- Create a tutorial
claude> /blog.write_tutorial_tool_in_30_mins pgmpy
Create a notebook about one topic¶
Using /notebook.create_outline and /notebook.implement_outline¶
Create
notebook_outline.probabilistic_inference.mdclaude> /notebook.create_outline https://pgmpy.org/guides/probabilistic_inference.htmlReview the outline
Create the notebook
claude> /notebook.implement_outline tutorials/pgmpy/notebook_outline.probabilistic_inference.mdThis creates:
- probabilistic_inference.ipynb
- probabilistic_inference_utils.py
Create paired Python
> jupytext.py --action pair --files probabilistic_inference.ipynbFix / improve the
*_utils.py> linters2/lint_cc.py --files tutorials/pgmpy/probabilistic_inference_utils.pyMake sure everything runs end to end
> docker_cmd.sh "python /git_root/tutorials/pgmpy/probabilistic_inference.py"Edit and improve the notebook
> docker_jupyter.sh http://localhost:8888/lab/tree/git_root/tutorials/pgmpy/probabilistic_inference.ipynb
Using /notebook.implement_for_package_API¶
The skill
./helpers_root/.claude/skills/notebook.implement_for_package_API/SKILL.mdis more completeclaude> /notebook.implement_for_package_API pgmpy https://pgmpy.org/guides/probabilistic_inference.html and save it in tutorials/pgmpy/pgmpy.01.API.probabilistic_inference.ipynbclaude> /notebook.implement_for_package_API pgmpy https://pgmpy.org/guides/datasets.html and save it in tutorials/pgmpy/pgmpy.02.API.datasets.ipynb/notebook.implement_for_package_API pgmpy https://
pgmpy .org /guides /example _models .html and save it in tutorials/pgmpy/pgmpy.03.API.example_models.ipynb