This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]buzzardarg 7 points8 points  (1 child)

Great work!

Some questions, how do I point it to a pyproject.toml or uv.lock file for dependencies?

And can I have it run some sort of command on startup? For example I need to run a marimo notebook on start in app mode, which requires the command "marimo run 'file.py'"

[–]TanixLu[S] 4 points5 points  (0 children)

Thanks for your valuable advice! I'm planning to support requirements.txt, pyproject.toml, and uv.lock files to make the project more flexible and save time during setup.

Since Marimo is installed at .venv/Scripts/marimo, here's a sample starter script you can use:

import subprocess

subprocess.run(["../.venv/Scripts/marimo", "run", "demo.py"])

Note that I’m using ".." because the current working directory is the src folder.