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

Live refresh of marimo based on watching the filesystem #1511

Open
ebetica opened this issue May 28, 2024 · 3 comments
Open

Live refresh of marimo based on watching the filesystem #1511

ebetica opened this issue May 28, 2024 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ebetica
Copy link

ebetica commented May 28, 2024

Description

It would be great if we can extend marimo to work with arbitrary editors. One main gripe I've had with ipynb is being forced to use their editor. However, since marimo scripts are plaintext, it should be possible to detect filesystem changes and automatically update a UI based on code edits from another editor.

Simultaneously, this would make it much easier to do code completion with language servers in a way that it would be hard to for marimo to do, e.g. build a totally independent code editor.

Suggested solution

have a filesystem watcher run on a file, and automatically update / rerun cells as in marimo edit according to file mutations.

Alternative

No response

Additional context

No response

@mscolnick
Copy link
Contributor

mscolnick commented May 28, 2024

we have marimo run --watch. but this would re-run the whole application each time instead of granular updates.

this is something requested a few times and we can look into. some have referred to this as "kiosk" mode where we can edit in vscode/vim/etc, but just view the output in the browser.

I can say it is on our roadmap, but can't give you an exact time.

@akshayka akshayka added the enhancement New feature or request label May 28, 2024
@ebetica
Copy link
Author

ebetica commented May 30, 2024

I wonder if marimo can generally implement better VSCode support through the plugin. For example the VSCode editor support for editing is a lot better than marimo. The Jupyter extension on VSCode is amazing, and supports better LSP + custom environments. I don't know if there's a good way to hook up marimo to the VSCode extension for jupyter.

https://code.visualstudio.com/api/extension-guides/notebook#:~:text=The%20Notebook%20API%20allows%20Visual%20Studio%20Code%20extensions,allows%20for%20similar%20experiences%20inside%20Visual%20Studio%20Code.

@mscolnick
Copy link
Contributor

I think very soon we will look into native vscode integration using their notebook API

@mscolnick mscolnick added the help wanted Extra attention is needed label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants