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.

explicitly add yaml as a dep (#1420)

Dylan Madisettic01db4d6ab5a
diff --git a/marimo/_cli/convert/markdown.py b/marimo/_cli/convert/markdown.py
index c36fa727de..584e34cebe 100644
--- a/marimo/_cli/convert/markdown.py
+++ b/marimo/_cli/convert/markdown.py
@@ -8,8 +8,6 @@ from typing import Any, Callable, Literal, Optional, Union
# Native to python
from xml.etree.ElementTree import Element, SubElement
-import yaml
-
# Markdown is a dependency of marimo, as such we utilize it as much as possible
# to parse markdown.
from markdown import Markdown
@@ -30,6 +28,7 @@ from marimo._ast.cell import Cell, CellConfig
from marimo._ast.compiler import compile_cell
from marimo._cli.convert.utils import markdown_to_marimo
+import yaml
# CSafeLoader is faster than SafeLoader.
try:
from yaml import CSafeLoader as SafeLoader
diff --git a/pyproject.toml b/pyproject.toml
index 0a7cb5c897..11757e52f2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -24,6 +24,8 @@ dependencies = [
"pygments>=2.13,<3",
# for reading, writing configs
"tomlkit>= 0.12.0",
+ # for managing frontmatter headers in markdown
+ "pyyaml>=6.0",
# web server
# - 0.22.0 introduced timeout-graceful-shutdown, which we use
"uvicorn >= 0.22.0",