re-write of HMC code in the book Probabilistic Programming & Bayesian Methods for Hackers to PyStan2 CmdStanPy
(due to multiple feature changes in PyStan3, I decided to make it to CmdStanPy)
bonus: a working example in Julia + Stan: stanjl_chap2ex1.jl
original book: https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers
here are just code, not notebook, comments whatsoever
DISCLAIMER: just an attempt, so not official, neither guaranteed to work on your machine
other resources: