Miscellaneous¶
marimo.running_in_notebook
¶
Returns True if running in a marimo notebook, False otherwise
marimo.defs
¶
Get the definitions of the currently executing cell.
RETURNS | DESCRIPTION |
---|---|
tuple[str, ...]
|
tuple[str, ...]: A tuple of the currently executing cell's defs. |
marimo.refs
¶
Get the references of the currently executing cell.
RETURNS | DESCRIPTION |
---|---|
tuple[str, ...]
|
tuple[str, ...]: A tuple of the currently executing cell's refs. |
marimo.notebook_dir
¶
Get the directory of the currently executing notebook.
RETURNS | DESCRIPTION |
---|---|
Path | None
|
pathlib.Path | None: A pathlib.Path object representing the directory of the current notebook, or None if the notebook's directory cannot be determined. |
Examples: