Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

docs: convert to mp4 for webkit compatibility (#3730)

Akshay Agrawal761c29b3ba2d
diff --git a/.gitignore b/.gitignore
index 34815b9531..894131b262 100644
--- a/.gitignore
+++ b/.gitignore
@@ -119,3 +119,4 @@ marimo/_lsp/
.marimo.toml
.mypy_cache/
__marimo__
+.aider*
diff --git a/docs/_static/docs-dataframe-table.mp4 b/docs/_static/docs-dataframe-table.mp4
new file mode 100644
index 0000000000..f3f1407c88
Binary files /dev/null and b/docs/_static/docs-dataframe-table.mp4 differ
diff --git a/docs/_static/docs-dataframe-transform.mp4 b/docs/_static/docs-dataframe-transform.mp4
new file mode 100644
index 0000000000..5ffda7314c
Binary files /dev/null and b/docs/_static/docs-dataframe-transform.mp4 differ
diff --git a/docs/_static/docs-delete-cell.mp4 b/docs/_static/docs-delete-cell.mp4
new file mode 100644
index 0000000000..c811f2913e
Binary files /dev/null and b/docs/_static/docs-delete-cell.mp4 differ
diff --git a/docs/_static/docs-df.mp4 b/docs/_static/docs-df.mp4
index 4fc86d1658..b9c4106aed 100644
Binary files a/docs/_static/docs-df.mp4 and b/docs/_static/docs-df.mp4 differ
diff --git a/docs/_static/docs-disable-cell.mp4 b/docs/_static/docs-disable-cell.mp4
new file mode 100644
index 0000000000..fc8b5e4ba7
Binary files /dev/null and b/docs/_static/docs-disable-cell.mp4 differ
diff --git a/docs/_static/docs-enable-cell.mp4 b/docs/_static/docs-enable-cell.mp4
new file mode 100644
index 0000000000..28aa8cdd82
Binary files /dev/null and b/docs/_static/docs-enable-cell.mp4 differ
diff --git a/docs/_static/docs-intro-app.mp4 b/docs/_static/docs-intro-app.mp4
new file mode 100644
index 0000000000..2d70095daf
Binary files /dev/null and b/docs/_static/docs-intro-app.mp4 differ
diff --git a/docs/_static/docs-intro.mp4 b/docs/_static/docs-intro.mp4
new file mode 100644
index 0000000000..bc7a011a6f
Binary files /dev/null and b/docs/_static/docs-intro.mp4 differ
diff --git a/docs/_static/docs-markdown-toggle.mp4 b/docs/_static/docs-markdown-toggle.mp4
new file mode 100644
index 0000000000..068f19975d
Binary files /dev/null and b/docs/_static/docs-markdown-toggle.mp4 differ
diff --git a/docs/_static/docs-model-comparison.mp4 b/docs/_static/docs-model-comparison.mp4
new file mode 100644
index 0000000000..3587b47c7c
Binary files /dev/null and b/docs/_static/docs-model-comparison.mp4 differ
diff --git a/docs/_static/docs-state-counter.mp4 b/docs/_static/docs-state-counter.mp4
new file mode 100644
index 0000000000..8a45abe72e
Binary files /dev/null and b/docs/_static/docs-state-counter.mp4 differ
diff --git a/docs/_static/docs-state-task-list.mp4 b/docs/_static/docs-state-task-list.mp4
new file mode 100644
index 0000000000..0be3958729
Binary files /dev/null and b/docs/_static/docs-state-task-list.mp4 differ
diff --git a/docs/_static/docs-state-tied.mp4 b/docs/_static/docs-state-tied.mp4
new file mode 100644
index 0000000000..19663b76e3
Binary files /dev/null and b/docs/_static/docs-state-tied.mp4 differ
diff --git a/docs/_static/embedding.mp4 b/docs/_static/embedding.mp4
new file mode 100644
index 0000000000..8104f725b1
Binary files /dev/null and b/docs/_static/embedding.mp4 differ
diff --git a/docs/_static/faq-marimo-ui.mp4 b/docs/_static/faq-marimo-ui.mp4
new file mode 100644
index 0000000000..83981c69df
Binary files /dev/null and b/docs/_static/faq-marimo-ui.mp4 differ
diff --git a/docs/_static/intro_tutorial.gif b/docs/_static/intro_tutorial.gif
deleted file mode 100644
index cf93544f87..0000000000
Binary files a/docs/_static/intro_tutorial.gif and /dev/null differ
diff --git a/docs/_static/intro_tutorial.webm b/docs/_static/intro_tutorial.webm
deleted file mode 100644
index 9da5afe340..0000000000
Binary files a/docs/_static/intro_tutorial.webm and /dev/null differ
diff --git a/docs/_static/outputs.mp4 b/docs/_static/outputs.mp4
new file mode 100644
index 0000000000..dd407663ff
Binary files /dev/null and b/docs/_static/outputs.mp4 differ
diff --git a/docs/_static/reactive.mp4 b/docs/_static/reactive.mp4
new file mode 100644
index 0000000000..b80a466d33
Binary files /dev/null and b/docs/_static/reactive.mp4 differ
diff --git a/docs/_static/readme-ui-form.mp4 b/docs/_static/readme-ui-form.mp4
new file mode 100644
index 0000000000..69b3b2bfaa
Binary files /dev/null and b/docs/_static/readme-ui-form.mp4 differ
diff --git a/docs/_static/readme-ui.mp4 b/docs/_static/readme-ui.mp4
new file mode 100644
index 0000000000..7af95003d2
Binary files /dev/null and b/docs/_static/readme-ui.mp4 differ
diff --git a/docs/_static/readme.mp4 b/docs/_static/readme.mp4
new file mode 100644
index 0000000000..e3d540a2a1
Binary files /dev/null and b/docs/_static/readme.mp4 differ
diff --git a/docs/_static/share-wasm-link.mp4 b/docs/_static/share-wasm-link.mp4
new file mode 100644
index 0000000000..234dead8be
Binary files /dev/null and b/docs/_static/share-wasm-link.mp4 differ
diff --git a/docs/faq.md b/docs/faq.md
index 61ed44038e..80a0772118 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -90,7 +90,9 @@ synchronized with the Python kernel: no callbacks, no observers, no manually
re-running cells.
<p align="center">
-<video autoplay muted loop playsinline width="600px" align="center" src="/_static/faq-marimo-ui.webm">
+<video autoplay muted loop playsinline width="600px" align="center">
+ <source src="/_static/faq-marimo-ui.mp4" type="video/mp4">
+ <source src="/_static/faq-marimo-ui.webm" type="video/webm">
</video>
</p>
diff --git a/docs/getting_started/key_concepts.md b/docs/getting_started/key_concepts.md
index f78e370e17..d7f25dfa9a 100644
--- a/docs/getting_started/key_concepts.md
+++ b/docs/getting_started/key_concepts.md
@@ -52,7 +52,9 @@ variables defined by that cell._ This is reactive execution.
<div align="center">
<figure>
-<video autoplay muted loop playsinline width="600px" align="center" src="/_static/reactive.webm">
+<video autoplay muted loop playsinline width="600px" align="center">
+ <source src="/_static/reactive.mp4" type="video/mp4">
+ <source src="/_static/reactive.webm" type="video/webm">
</video>
</figure>
</div>
@@ -107,7 +109,9 @@ other marimo elements to build rich composite outputs:
<div align="center">
<figure>
-<video autoplay muted loop playsinline width="600px" align="center" src="/_static/outputs.webm">
+<video autoplay muted loop playsinline width="600px" align="center">
+ <source src="/_static/outputs.mp4" type="video/mp4">
+ <source src="/_static/outputs.webm" type="video/webm">
</video>
</figure>
</div>
diff --git a/docs/guides/editor_features/overview.md b/docs/guides/editor_features/overview.md
index 0da5e97fac..958c987d9f 100644
--- a/docs/guides/editor_features/overview.md
+++ b/docs/guides/editor_features/overview.md
@@ -128,7 +128,9 @@ Get a link to share your notebook via our [online playground](../wasm.md):
<div align="center">
<figure>
-<video autoplay muted loop playsinline width="100%" height="100%" align="center" src="/_static/share-wasm-link.webm">
+<video autoplay muted loop playsinline width="100%" height="100%" align="center">
+ <source src="/_static/share-wasm-link.mp4" type="video/mp4">
+ <source src="/_static/share-wasm-link.webm" type="video/webm">
</video>
</figure>
</div>
diff --git a/docs/guides/interactivity.md b/docs/guides/interactivity.md
index 5eb6000fd1..856751d5ba 100644
--- a/docs/guides/interactivity.md
+++ b/docs/guides/interactivity.md
@@ -7,7 +7,9 @@ global variable automatically runs all cells that reference it.**
<div align="center">
<figure>
-<video autoplay muted loop playsinline width="100%" height="100%" align="center" src="/_static/readme-ui.webm">
+<video autoplay muted loop playsinline width="100%" height="100%" align="center">
+ <source src="/_static/readme-ui.mp4" type="video/mp4">
+ <source src="/_static/readme-ui.webm" type="video/webm">
</video>
</figure>
</div>
diff --git a/docs/guides/publishing/playground.md b/docs/guides/publishing/playground.md
index 790ab81cbf..5abb6f0d8a 100644
--- a/docs/guides/publishing/playground.md
+++ b/docs/guides/publishing/playground.md
@@ -123,7 +123,9 @@ link` to get a `marimo.app/...` URL representing your notebook:
<div align="center">
<figure>
-<video autoplay muted loop playsinline width="100%" height="100%" align="center" src="/_static/share-wasm-link.webm">
+<video autoplay muted loop playsinline width="100%" height="100%" align="center">
+ <source src="/_static/share-wasm-link.mp4" type="video/mp4">
+ <source src="/_static/share-wasm-link.webm" type="video/webm">
</video>
</figure>
</div>
diff --git a/docs/guides/state.md b/docs/guides/state.md
index 90d63b062f..fad319e6fe 100644
--- a/docs/guides/state.md
+++ b/docs/guides/state.md
@@ -42,7 +42,9 @@ But sometimes, you might want interactions to mutate state:
<div align="center" style="margin-top:2rem; margin-bottom:2rem">
<figure>
-<video autoplay muted loop playsinline width="100%" height="100%" align="center" src="/_static/docs-state-task-list.webm">
+<video autoplay muted loop playsinline width="100%" height="100%" align="center">
+ <source src="/_static/docs-state-task-list.mp4" type="video/mp4">
+ <source src="/_static/docs-state-task-list.webm" type="video/webm">
</video>
</figure>
<figcaption>A proof-of-concept TODO list made using state.</figcaption>
diff --git a/docs/guides/working_with_data/dataframes.md b/docs/guides/working_with_data/dataframes.md
index 8668ecc8af..9cc7756c34 100644
--- a/docs/guides/working_with_data/dataframes.md
+++ b/docs/guides/working_with_data/dataframes.md
@@ -17,7 +17,9 @@ marimo lets you page through, search, sort, and filter dataframes, making it
extremely easy to get a feel for your data.
<figure>
-<video autoplay muted loop playsinline width="100%" height="100%" align="center" src="/_static/docs-df.webm">
+<video autoplay muted loop playsinline width="100%" height="100%" align="center">
+ <source src="/_static/docs-df.mp4" type="video/mp4">
+ <source src="/_static/docs-df.webm" type="video/webm">
</video>
<figcaption>marimo brings dataframes to life.</figcaption>
</figure>
diff --git a/docs/guides/working_with_data/plotting.md b/docs/guides/working_with_data/plotting.md
index d7e8f1c4fa..69fc6e3bf4 100644
--- a/docs/guides/working_with_data/plotting.md
+++ b/docs/guides/working_with_data/plotting.md
@@ -69,7 +69,9 @@ automatically made available as Pandas dataframes in Python._
<div align="center">
<figure>
-<video autoplay muted loop playsinline width="600px" align="center" src="/_static/docs-intro.webm">
+<video autoplay muted loop playsinline width="600px" align="center">
+ <source src="/_static/docs-intro.mp4" type="video/mp4">
+ <source src="/_static/docs-intro.webm" type="video/webm">
</video>
</figure>
</div>
diff --git a/docs/index.md b/docs/index.md
index f4f418ec80..a4083757f0 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -75,7 +75,9 @@ reference its variables, eliminating the error-prone task of manually
re-running cells. Delete a cell and marimo scrubs its variables from program
memory, eliminating hidden state.
-<video autoplay muted loop playsinline width="700px" align="center" src="/_static/reactive.webm">
+<video autoplay muted loop playsinline width="700px" align="center">
+ <source src="/_static/reactive.mp4" type="video/mp4">
+ <source src="/_static/reactive.webm" type="video/webm">
</video>
<a name="expensive-notebooks"></a>
@@ -94,14 +96,18 @@ transformers](api/inputs/dataframe.md), and [chat
interfaces](api/inputs/chat.md), and the cells that
use them are automatically re-run with their latest values.
-<video autoplay muted loop playsinline width="700px" align="center" src="/_static/readme-ui.webm">
+<video autoplay muted loop playsinline width="700px" align="center">
+ <source src="/_static/readme-ui.mp4" type="video/mp4">
+ <source src="/_static/readme-ui.webm" type="video/webm">
</video>
**Interactive dataframes.** [Page through, search, filter, and
sort](./guides/working_with_data/dataframes.md)
millions of rows blazingly fast, no code required.
-<video autoplay muted loop playsinline width="100%" height="100%" align="center" src="/_static/docs-df.webm">
+<video autoplay muted loop playsinline width="100%" height="100%" align="center">
+ <source src="/_static/docs-df.mp4" type="video/mp4">
+ <source src="/_static/docs-df.webm" type="video/webm">
</video>
**Performant runtime.** marimo runs only those cells that need to be run by
@@ -158,7 +164,9 @@ code hidden and uneditable:
marimo run your_notebook.py
```
-<video autoplay muted loop playsinline width="450px" align="center" src="/_static/docs-model-comparison.webm" style="border-radius: 8px">
+<video autoplay muted loop playsinline width="450px" align="center" style="border-radius: 8px">
+ <source src="/_static/docs-model-comparison.mp4" type="video/mp4">
+ <source src="/_static/docs-model-comparison.webm" type="video/webm">
</video>
**Execute as scripts.** Execute a notebook as a script at the
@@ -194,7 +202,9 @@ marimo is easy to get started with, with lots of room for power users.
For example, here's an embedding visualizer made in marimo
([video](https://marimo.io/videos/landing/full.mp4)):
-<video autoplay muted loop playsinline width="700px" align="center" src="/_static/embedding.webm">
+<video autoplay muted loop playsinline width="700px" align="center">
+ <source src="/_static/embedding.mp4" type="video/mp4">
+ <source src="/_static/embedding.webm" type="video/webm">
</video>
Check out our [guides](guides/index.md), our [example
@@ -206,25 +216,33 @@ GitHub to learn more.
<tr>
<td>
<a target="_blank" href="getting_started/key_concepts">
- <video autoplay muted loop playsinline style="max-height: 150px; width: auto; display: block" src="/_static/reactive.webm">
+ <video autoplay muted loop playsinline style="max-height: 150px; width: auto; display: block">
+ <source src="/_static/reactive.mp4" type="video/mp4">
+ <source src="/_static/reactive.webm" type="video/webm">
</video>
</a>
</td>
<td>
<a target="_blank" href="api/inputs/">
- <video autoplay muted loop playsinline style="max-height: 150px; width: auto; display: block" src="/_static/readme-ui.webm">
+ <video autoplay muted loop playsinline style="max-height: 150px; width: auto; display: block">
+ <source src="/_static/readme-ui.mp4" type="video/mp4">
+ <source src="/_static/readme-ui.webm" type="video/webm">
</video>
</a>
</td>
<td>
<a target="_blank" href="guides/working_with_data/plotting">
- <video autoplay muted loop playsinline style="max-height: 150px; width: auto; display: block" src="/_static/docs-intro.webm">
+ <video autoplay muted loop playsinline style="max-height: 150px; width: auto; display: block">
+ <source src="/_static/docs-intro.mp4" type="video/mp4">
+ <source src="/_static/docs-intro.webm" type="video/webm">
</video>
</a>
</td>
<td>
<a target="_blank" href="api/layouts/">
- <video autoplay muted loop playsinline style="max-height: 150px; width: auto; display: block" src="/_static/outputs.webm">
+ <video autoplay muted loop playsinline style="max-height: 150px; width: auto; display: block">
+ <source src="/_static/outputs.mp4" type="video/mp4">
+ <source src="/_static/outputs.webm" type="video/webm">
</video>
</a>
</td>
@@ -249,6 +267,7 @@ GitHub to learn more.
<img src="https://marimo.io/shield.svg"/>
</a>
</td>
+ <td>
<a target="_blank" href="https://marimo.app/l/0ue871">
<img src="https://marimo.io/shield.svg"/>
</a>