Back to Marimo

Generate entire notebooks with AI

docs/guides/generate_with_ai/text_to_notebook.md

0.23.51.3 KB
Original Source

Generate entire notebooks with AI

Use marimo new at the command line to generate entirely new notebooks using an LLM.

For example, type

bash
marimo new "Plot an interactive 3D surface with matplotlib." 

to open a freshly generated notebook in your browser.

For long prompts, you can pass a text file instead:

bash
marimo new my_prompt.txt

marimo's AI knows how to use marimo-specific UI elements and popular libraries for working with data. To get inspired, visit https://marimo.app/ai. Some of our favorites: