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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
test: fix snapshots for tests (#4702)
Shahmir Varqha50ea8760c607
diff --git a/tests/_cli/snapshots/marimo_for_jupyter_users.md.txt b/tests/_cli/snapshots/marimo_for_jupyter_users.md.txtindex 267908f569..d51edef127 100644--- a/tests/_cli/snapshots/marimo_for_jupyter_users.md.txt+++ b/tests/_cli/snapshots/marimo_for_jupyter_users.md.txt@@ -69,19 +69,25 @@ reactive execution model: interactions automatically trigger execution ofcells that refer to them.In contrast, Jupyter's lack of reactivity makes IPyWidgets difficult to use.-<!---->-## Shareable as apps-marimo notebooks can be shared as read-only web apps: just serve it with+````python {.marimo hide_code="true"}+mo.md(+ r"""+ ## Shareable as apps++ marimo notebooks can be shared as read-only web apps: just serve it with-```marimo run your_notebook.py```+ ```marimo run your_notebook.py```-at the command-line.+ at the command-line.++ Not every marimo notebook needs to be shared as an app, but marimo makes it+ seamless to do so if you want to. In this way, marimo works as a replacement+ for both Jupyter and Streamlit.+ """+)+````-Not every marimo notebook needs to be shared as an app, but marimo makes it-seamless to do so if you want to. In this way, marimo works as a replacement-for both Jupyter and Streamlit.-<!---->## Cell orderIn marimo, cells can be arranged in any order — marimo figures out the one true way to execute them based on variable declarations and references (in a ["topologically sorted"](https://en.wikipedia.org/wiki/Topological_sorting#:~:text=In%20computer%20science%2C%20a%20topological,before%20v%20in%20the%20ordering.) order)diff --git a/tests/_cli/snapshots/unsafe-doc-old.md.txt b/tests/_cli/snapshots/unsafe-doc-old.md.txtindex b4f3d85b80..2990574346 100644--- a/tests/_cli/snapshots/unsafe-doc-old.md.txt+++ b/tests/_cli/snapshots/unsafe-doc-old.md.txt@@ -14,19 +14,31 @@ What happens if I just leave a \"\"\"print("Hello, World!")```--->--```marimo run convert document.md```+````python {.marimo hide_code="true"}+mo.md(+ r"""+ -->++ ```marimo run convert document.md```+ """+)+```````python {.marimo unparsable="true"}it's an unparsable cell```-<!-- Actually markdown -->-```{python} `- print("Hello, World!")+````python {.marimo hide_code="true"}+mo.md(+ r"""+ <!-- Actually markdown -->+ ```{python} `+ print("Hello, World!")-<!-- Disabled code block -->+ <!-- Disabled code block -->+ """+)+```````python {.marimo disabled="true"}1 + 1diff --git a/tests/_cli/snapshots/unsafe-doc.md.txt b/tests/_cli/snapshots/unsafe-doc.md.txtindex dbfb360351..b83cf2f005 100644--- a/tests/_cli/snapshots/unsafe-doc.md.txt+++ b/tests/_cli/snapshots/unsafe-doc.md.txt@@ -14,19 +14,31 @@ What happens if I just leave a \"\"\"print("Hello, World!")```--->--```marimo run convert document.md```+````python {.marimo hide_code="true"}+mo.md(+ r"""+ -->++ ```marimo run convert document.md```+ """+)+```````python {.marimo unparsable="true"}it's an unparsable cell```-<!-- Actually markdown -->-```python {.marimo} `- print("Hello, World!")+````python {.marimo hide_code="true"}+mo.md(+ r"""+ <!-- Actually markdown -->+ ```python {.marimo} `+ print("Hello, World!")-<!-- Disabled code block -->+ <!-- Disabled code block -->+ """+)+```````python {.marimo disabled="true"}1 + 1