Skip to content

Reload the notebook when the file changes on disk #2675

@ibash

Description

@ibash

Description

Neovim is my editor. When I edit a marimo notebook file and save it in vim, I would like marimo to reload with my changes.

Note that I am not editing external modules, but the marimo notebook directly.

It's not necessary to auto-run cells. I'm happy to run them manually.

Note that I think listening to file changes on disk is better than a direct neovim integration, because listening to file changes would allow integration with other tools.

Related to #998, however only module reloading was implemented.

Suggested solution

Watch file changes to the notebook file on disk. When a change is detected update cells and mark which cells are outdated.

Alternative

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions