examples/explore_high_dimensional_data at main · marimo-team/examples · GitHub
Skip to content

Latest commit

 

History

History

explore_high_dimensional_data

Folders and files

README.md

Explore high dimensional data

Open in marimo

This template lets you visualize and interactively explore high dimensional data. The starter code uses PCA to embed and plot numerical digits, seeing how they cluster together — when you select points in the plot, the notebook shows you the underlying images!

To use this notebook on your own data, just replace the implementations of the following four functions:

  • load_data
  • embed_data
  • scatter_data
  • show_selection

Running this notebook

Open this notebook in our online playground or run it locally.

Running locally

The requirements of each notebook are serialized in them as a top-level comment. Here are the steps to run the notebook:

  1. Install uv
  2. Open an example with uvx marimo edit --sandbox <notebook-url>

Tip

The --sandbox flag opens the notebook in an isolated virtual environment, automatically installing the notebook's dependencies 📦

You can also open notebooks without uv, in which case you'll need to manually install marimo first. Then run marimo edit <notebook-url>; however, you'll also need to install the requirements yourself.