Skip to content

Fix docs imports#22

Merged
jmarshrossney merged 3 commits into
mainfrom
fix-docs-imports
May 6, 2026
Merged

Fix docs imports#22
jmarshrossney merged 3 commits into
mainfrom
fix-docs-imports

Conversation

@jmarshrossney
Copy link
Copy Markdown
Owner

I failed to notice the examples are broken on gh pages because they can't import dirconf.

This is because I was running marimo export md with --sandbox, which creates a new dedicated isolated environment to run the notebook.

I thought this was smart since I could in-line each individual example's dependencies, rather than including them in pyproject.toml. However, if you do this you need to inline the local package - which means not only adding direnv to the dependencies table, but also the local path in the sources table.

It actually doesn't make sense for these notebooks to be sandboxed since they depend on some local paths (the example config and inputs). So, I'm going to revert to just building the notebooks in the project venv, with an extra dependencies table in pyproject.toml.

@jmarshrossney jmarshrossney merged commit d68cf0f into main May 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant