Pydantic is a great way to declare a source of truth for a batch job, especially for ML. You can declare something like: You can fill these model params with two methods too, you can imagine a form in the UI. But you can also use the CLI from marimo. The user can now run this from the command line via: This is the best of both worlds, you can use the UI to test and iterate, and then use the CLI to run the batch job. Another benefit is that you can run the notebook with settings to make it run quickly to see if there are any bugs in the notebook. The user wants to be able to run a notebook usi…