How do I refresh marimo notebook when modified externally?
Hello people, I learned about Marimo just 1h ago, haven't really read docs yet, so pardon my ignorance
My usecase is the following:
I have paid subscription to AI provider which has its own extension for VS Code/Rider, other IDEs (in my case it's Cody but it doesn't matter).
I would like to use it with Marimo notebooks.
I see that VS code extension is not there yet so my next idea is to use main browser interface and occasionally interact with source file directly from VS Code without the marimo extension. So to edit python file directly (using AI or manually, doesn't matter)
This doesn't work for me right now cause whenever I make changes to source file - marimo doesn't see it until I restart kernel
is there a way to tell it that file is modified somehow? maybe send some HTTP request from vs code.. or something.. or press some hotkey inside marimo to reread the file contents (but don't restart the kernel)
Solution:Jump to solution
and I found solution which works for me good enough
so if I put my code into separate python file (module) - it's actually being tracked - so any code modifications of that file are updated automatically
so only main notebook file is not being updated...
2 Replies
I see it's already discussed here, so I guess wip
https://github.com/marimo-team/marimo/issues/1511
GitHub
Live refresh of marimo based on watching the filesystem · Issue #15...
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 p...
Solution
and I found solution which works for me good enough
so if I put my code into separate python file (module) - it's actually being tracked - so any code modifications of that file are updated automatically
so only main notebook file is not being updated