Skip to content

About

Python for Chemists at Durham University

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

Python for Chemists at Durham

This repository was created from the official template marimo WebAssembly temnplate.

Including data or assets

To include data or assets in your notebooks, add them to the public/ directory.

For example, the apps/charts.py notebook loads an image asset from the public/ directory.

<img src="public/logo.png" width="200" />

And the notebooks/penguins.py notebook loads a CSV dataset from the public/ directory.

import polars as pl
df = pl.read_csv(mo.notebook_location() / "public" / "penguins.csv")

🧪 Testing

To test the export process, run .github/scripts/build.py from the root directory.

uv run .github/scripts/build.py

This will export all notebooks in a folder called _site/ in the root directory. Then to serve the site, run:

python -m http.server -d _site

This will serve the site at http://localhost:8000.

About

Python for Chemists at Durham University

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages