How to distinguish marimo notebooks from any other python files robustly and efficiently?
If I want to get all marimo notebooks recursively inside a directory, what algorithm can be both robust and efficient?
1 Reply
The marimo edit server uses the following heuristic:
https://github.com/marimo-team/marimo/blob/9668948b34ca156a3e8cef57507f3122fb9dbdfa/marimo/_server/files/os_file_system.py#L94-L99
GitHub
marimo/marimo/_server/files/os_file_system.py at 9668948b34ca156a3e...
A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git. - marimo-team/marimo