Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Getting Started With marimo Notebooks (Summary)

By now, you not only know how to create a marimo notebook, but also how it can decide for itself the order in which its code should run. You’ve seen various examples of the benefits reactivity brings to your notebook when you alter its cells, add common user-interface elements, or even add confusing duplicate code.

Additionally, you’ve seen how marimo supports notebook distribution through sandboxing and how to convert notebooks into alternative formats for use outside the marimo environment. You also understand that the problems associated with traditional notebook environments don’t exist in marimo.

In this video course, you’ve learned:

  • How to create a marimo notebook
  • What’s meant by reactivity
  • How marimo makes sense of unordered code cells
  • How to add interactivity to your notebook
  • How to distribute notebooks easily and safely
  • The inherent flaws of linear notebooks
Download

Course Slides (.pdf)

2.9 MB

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

00:00 In the previous lesson, I showed you how to export parts of your notebook. This is the last lesson where I’ll summarize the course and point you at other resources.

00:10 marimo is a newer entry in the Python interactive notebook space. A notebook is made up of cells, which can contain Python or Markdown. Like with a REPL, if a cell evaluates something, the content is displayed.

00:23 Unlike the REPL, the evaluation in this case can also include graphs, DataFrames, and more. marimo takes a different approach to execution order than a regular Python script or some other notebooks.

00:36 It uses a directed acyclic graph to analyze the operation order of the cells. This is a deterministic process, and so operation order is reproducible and guaranteed.

00:47 The underlying file format for marimo is a Python file. This means all the usual code management tools that you use in your daily life can also be used with your notebooks.

00:57 marimo also comes with a library of UI components, allowing you to use GUI widgets to make your notebook more interactive, even if it’s a little blinky at the moment.

01:06 And finally, as you saw in the previous lesson, you can export the contents of your notebook, including generating a standalone Python script with its dependencies pinned.

01:17 The marimo site has loads of good content for you to explore. There’s a gallery of notebooks to inspire you, and lots of good documentation. If you want to learn more about the LaTeX math mini language, this entry on Wikipedia can help you out.

01:32 There’s always more content for you to check out at Real Python. To learn more about the granddaddy of Python notebooks, this course and tutorial will get you started with Jupyter.

01:42 If you prefer to go a little more low key, maybe take this course to learn more about the REPL. For somewhere in between, how about bpython, a third-party REPL with all sorts of extra features.

01:55 That’s all for now. I hope you enjoyed the course. Thanks for your attention.

Become a Member to join the conversation.