I recently built Neutrino Notebooks, an open source python library for compiling Jupyter notebooks into FastAPI apps.
I work with notebooks a ton and typically find myself refactoring notebook code into a backend or some other python script. So, I made this to streamline that process.
In short, it lets you:
- Expose cells as HTTP or websockets endpoints with comment declaratives like `@HTTP` and `@WS`
- Periodically run cells as scheduled tasks for simple data pipelines with `@SCHEDULE`
- Automatic routing based on filename and directory structure, sort of similar to NextJs.
- Ignore sandbox files by naming them ‘_sandbox’
You can compile your notebooks, which creates a /build folder with a dockerized FastAPI app for local testing or deployment.
GitHub repo: https://github.com/neutrino-ai/neutrino-notebooks
Excited for feedback from the HN community