Get help from the marimo community

Home
Members
ben-pr-p
b
ben-pr-p
Offline, last seen 2 months ago
Joined November 25, 2024
I'm having trouble figuring out how to do relative imports (I'm not too familiar with Python modules).

My folder structure is:
/notebooks
-- /public
---- my-notebook.py
-- /private
-- util.py
/src
-- app.py

In my-notebook.py, which I'm running from the project root via marimo edit notebooks/public/my-notebook.py, I have:
Plain Text
from .notebooks.util import warehouse


But I get: ImportError: attempted relative import with no known parent package

I imagine this is an obvious fix for someone with experience here! Just looking to set up re-use of shared setup functions across notebooks
6 comments
b
A