Utilities
Utilities for teaching with marimo notebooks.
is_pyodide()
Is this notebook running in pyodide?
Source code in src/marimo_learn/utilities.py
8 9 10 11 | |
localize_file(filepath)
Download a file from the 'public' directory, returning the local path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
path relative to 'public' directory |
required |
Returns:
| Type | Description |
|---|---|
str
|
local file path |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
if remote file not found |
Source code in src/marimo_learn/utilities.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |