Get help from the marimo community

Updated 4 days ago

How can we define a project's root directory?

For example, given
Plain Text
src/my_proj/processors/simple_processor.py
notebooks/nb1.py

I'd like to set the project root as src/proj and, from notebook nb1.py, import
Plain Text
from processors.simple_processor import SimpleProcessor
M
1 comment
If the answer is to modify sys.path at the beginning of every notebook, that's fine, but some tools expect/allow base directories to be specified in pyproject.toml
Add a reply
Sign up and join the conversation on Discord