Implementing Monte-Carlo-based π estimation as a Python module.
This example uses uv for python project and tooling. Please make sure you have it installed. See the Installing uv page.
Obviously, you also need Rust installed. See the Installing Rust page.
-
Install
uv(see above) and clone this repository. -
Open the
experiment.ipynbJupyter Notebook by running (the project will be built automatically):uv run jupyter notebook experiment.ipynb