Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.08 KB

File metadata and controls

42 lines (28 loc) · 1.08 KB

Visualizing the Central Limit Theorem

A Marimo notebook demonstrating the Central Limit Theorem by visualizing the distribution of cumulative means.

This project includes three versions of the notebook:

  • main.md: Uses polars and facet_wrap.
  • main1.md: Uses numpy and facet_wrap.
  • main2.md: Uses numpy and gggrid, with plots annotated by standard deviation.

Usage

The notebooks are designed to be run with uvx in a sandboxed environment. Marimo automatically installs the required dependencies defined in each file's frontmatter.

Running the Notebooks

To run a notebook, execute one of the following commands:

# Polars version
uvx marimo run --sandbox main.md

# NumPy version (facet_wrap)
uvx marimo run --sandbox main1.md

# NumPy version (gggrid)
uvx marimo run --sandbox main2.md

Editing the Notebooks

To edit a notebook, use the corresponding command:

# Polars version
uvx marimo edit --sandbox main.md

# NumPy version (facet_wrap)
uvx marimo edit --sandbox main1.md

# NumPy version (gggrid)
uvx marimo edit --sandbox main2.md