Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for --watch flag #65

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gabrielgrant
Copy link

@gabrielgrant gabrielgrant commented Jan 15, 2025

--watch seems very useful when using marimo within an editor so that edits within the editor (or automatic changes like symbol renames etc) are reflected in the notebook (vs today when those changes get silently overwritten by marimo)

Should not be merged before marimo support for --watch is released in marimo-team/marimo#3437

Based on #57

Note: in running tests locally, I'm seeing a bunch of failures in the export_as and convert tests (separate from these edits)

@gabrielgrant gabrielgrant changed the title feat: add support for --watch flag (default on) feat: add support for --watch flag Jan 15, 2025
tests don't use the default config, so shouldn't expect the --watch flag
unless explicitly set
@@ -48,6 +48,7 @@ You can configure the extension using the following settings:
- `marimo.browserType`: Browser to open marimo app (`system` or `embedded`, default: `embedded`)
- `marimo.port`: Default port for marimo server (default: `2818`)
- `marimo.sandbox`: Always start marimo in a sandbox, e.g. `marimo edit --sandbox` (default: `false`). Requires [`uv`](https://docs.astral.sh/uv/) to be installed.
- `marimo.watch`: Always start marimo with the `--watch` flag (default: `true`).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! this is a great addition and good default

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for doing the main implementation!

@mscolnick
Copy link
Contributor

the tests might have gotten stale. i will look into them.

also will add CI checks and look at the outstanding issues

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.

2 participants