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.

pdf smoke test: plt.show() (#7937)

Akshay Agrawal226554263a84
diff --git a/marimo/_smoke_tests/pdf_export/basic_example.py b/marimo/_smoke_tests/pdf_export/basic_example.py
index 52028dc706..12dbef4acd 100644
--- a/marimo/_smoke_tests/pdf_export/basic_example.py
+++ b/marimo/_smoke_tests/pdf_export/basic_example.py
@@ -1,6 +1,6 @@
import marimo
-__generated_with = "0.18.4"
+__generated_with = "0.19.2"
app = marimo.App(auto_download=["ipynb"])
@@ -14,7 +14,7 @@ def _():
@app.cell(hide_code=True)
def _(mo):
- mo.md("""
+ mo.md(r"""
This notebook contains:
- Markdown
@@ -25,9 +25,9 @@ def _(mo):
This Markdown also contains some math: $f(x)$
- \[
+ $$
g(x) = 0
- \]
+ $$
""")
return
@@ -47,11 +47,10 @@ def _():
@app.cell
def _():
- print("This is console output")
+ print("This is console output")
return
-
@app.cell
def _(px):
df = px.data.iris()
@@ -62,6 +61,14 @@ def _(px):
return (df,)
+def _(df, plt):
+ plt.scatter(x=df["sepal_width"], y=df["sepal_length"])
+ print("Plot in console output")
+ plt.show()
+ return
+
+
@app.cell
def _(df, plt):
plt.scatter(x=df["sepal_width"], y=df["sepal_length"])