Skip to content

0.6.0

Compare
Choose a tag to compare
@akshayka akshayka released this 17 May 05:55
· 115 commits to main since this release
4d60452

What's Changed

Version 0.6.0 includes two big new features — first-class markdown support and token-authentication — and small quality of life improvements.

Highlights

marimo ❤️ markdown: marimo edit nb.md. marimo now supports markdown as a first-class file format. This means that if you're working on notebook that's heavy on text, you can write your notebook in markdown using an editor of your choice (VSCode, vim — anything you like!). Save it as nb.md, then fire up the marimo editor to interact with it — marimo edit nb.md — or run it as an app with marimo run nb.md.

When working with markdown, create a notebook cell using a special fenced code block that starts with {python} (note the braces!).

```{python}
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
```

Here's a full example:

# Hello, world!                                                                  
                                                                                 
This is a markdown powered notebook.                                             
                                                                                 
```{python}                                                              
import random                                                                    
random.randint(0, 1000)                                                          
```                                                                              
                                                                                 
```{python, hide_code=true} 
import marimo as mo 
```

The markdown file format is not meant as a replacement for the Python one, but it gives you the flexibility to choose the format that's best for your workflow. You can convert markdown notebooks to Python with

marimo convert nb.md > nb.py

and export Python to markdown with

marimo convert nb.py > nb.md

marimo export notebook.md > notebook.py

Check out our tutorial to learn more.

Huge shout out to @dmadisetti for contributing the markdown support! 💪🎉

Token-based authentication 🔑. marimo now runs with token-based authentication by default — this makes sure that only trusted parties can access the marimo server. Most users won't notice changes to their workflow. To learn more, check out the docs.

Export as ipynb 📝. Export marimo notebooks as Jupyter notebook files with marimo export ipynb nb.py -o nb.ipynb.

Split cell hotkey ⌨️: Split cells with our new hotkey: Ctrl/Cmd-Shift-'.

Breaking changes

mo.hstack and mo.vstack now require you to use keyword args (except for the list of items).

New Contributors

Welcome to the marimo family!

Full changelog

Full Changelog: 0.5.2...0.6.0