A couple of years ago, I got lucky and found Daniel Roy Greenfeld’s dj-notebook project thanks to a reddit post. I wrote about it here. It’s held up well. I still find it very useful in almost any context where I’d run python manage.py shell to help me understand what’s going on with a django site. My preferences for using notebooks have evolved since then, though. Lately, I find marimo notebooks more suited to the way I like to use (and re-use) notebooks than jupyter. They’re easier to deal with in git, easier to share, and they don’t have the same tendency to depend on hidden state. While they’re also, as a consequence, a bit less flexible, they strike a better balance for me.
So this weekend, I wanted to see how they’d work with django.