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
Smoke test for PDF export (#7695)
Akshay Agrawal20d62a393fd9
diff --git a/marimo/_smoke_tests/pdf_export/basic_example.py b/marimo/_smoke_tests/pdf_export/basic_example.pynew file mode 100644index 0000000000..7f1a7c82af--- /dev/null+++ b/marimo/_smoke_tests/pdf_export/basic_example.py@@ -0,0 +1,64 @@+import marimo++__generated_with = "0.18.4"+app = marimo.App(auto_download=["ipynb"])+++def _():+ import marimo as mo+ import matplotlib.pyplot as plt+ import plotly.express as px+ return mo, plt, px++[email protected](hide_code=True)+def _(mo):+ mo.md("""+ This notebook contains:++ - Markdown+ - a marimo UI element+ - a Plotly scatter plot+ - a matplotlib plot+ - a dataframe output++ This Markdown also contains some math: $f(x)$++ \[+ g(x) = 0+ \]+ """)+ return+++def _(mo):+ mo.ui.text(label="$f(x)$")+ return+++def _(px):+ df = px.data.iris()+ fig = px.scatter(+ df, x="sepal_width", y="sepal_length", color="species", symbol="species"+ )+ fig+ return (df,)+++def _(df, plt):+ plt.scatter(x=df["sepal_width"], y=df["sepal_length"])+ return+++def _(df):+ df+ return+++if __name__ == "__main__":+ app.run()