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
fix: doc errors (#4865)
Dylan Madisettia93eac74ef80
diff --git a/docs/examples/index.md b/docs/examples/index.mdindex c0a009e95d..84f3f46d1e 100644--- a/docs/examples/index.md+++ b/docs/examples/index.md@@ -147,7 +147,7 @@ overview.<div class="grid cards examples-grid" markdown>-- 📊 [**Selecting data with Altair**](../api/plotting#reactive-charts-with-altair)+- 📊 [**Selecting data with Altair**](../api/plotting.md#reactive-charts-with-altair)---diff --git a/docs/guides/package_reproducibility.md b/docs/guides/package_reproducibility.mdindex 7b828937b7..7187532870 100644--- a/docs/guides/package_reproducibility.md+++ b/docs/guides/package_reproducibility.md@@ -153,7 +153,7 @@ This approach ensures that specific packages are always fetched from your design## Markdown file support-Sandboxing support is also provided in [marimo's markdown file format](./editor_features/watching.md#markdown-file-format) under the+Sandboxing support is also provided in [marimo's markdown file format](./editor_features/watching.md#as-markdown) under the`pyproject` entry of your frontmatter.```markdowndiff --git a/docs/guides/reusing_functions.md b/docs/guides/reusing_functions.mdindex 8c6428b7ee..f4be425a35 100644--- a/docs/guides/reusing_functions.md+++ b/docs/guides/reusing_functions.md@@ -13,7 +13,7 @@ meet the following **criteria**:1. The cell must define just a single function or class.2. The defined function or class can only refer to symbols defined in the- [setup cell](#create-a-setup-cell), or to other top-level symbols.+ [setup cell](#1-create-a-setup-cell), or to other top-level symbols.### Example@@ -116,7 +116,7 @@ print(stats)- Functions cannot depend on variables defined in regular cells- Like other cells, cyclic dependencies between functions are not allowed-- Functions cannot be exported from notebooks in [marimo's markdown format](editor_features/watching.md#markdown-file-support).+- Functions cannot be exported from notebooks in [marimo's markdown format](editor_features/watching.md#as-markdown).## Learn morediff --git a/marimo/_save/save.py b/marimo/_save/save.pyindex 73fc21dfa6..bb87c9cdb2 100644--- a/marimo/_save/save.py+++ b/marimo/_save/save.py@@ -634,6 +634,7 @@ def lru_cache( # type: ignore[misc]name: Union[str, Optional[Callable[..., Any]]] = None,maxsize: int = 128,*args: Any,+ pin_modules: bool = False,_internal_interface_not_for_external_use: None = None,**kwargs: Any,) -> Union[_cache_call, _cache_context]:@@ -685,6 +686,7 @@ def lru_cache( # type: ignore[misc]cache( # type: ignore[call-overload]arg,*args,+ pin_modules=pin_modules,loader=MemoryLoader.partial(max_size=maxsize),_frame_offset=2,**kwargs,@@ -715,6 +717,7 @@ def persistent_cache( # type: ignore[misc]save_path: str | None = None,method: LoaderKey = "pickle",store: Optional[Store] = None,+ fn: Optional[Callable[..., Any]] = None,*args: Any,pin_modules: bool = False,_internal_interface_not_for_external_use: None = None,@@ -833,6 +836,9 @@ def persistent_cache( # type: ignore[misc]if "_loader" in kwargs:loader = kwargs.pop("_loader")+ if fn is not None:+ raise TypeError("Do not use fn directly, use positional arguments.")+return cast(Union[_cache_call, _cache_context],cache( # type: ignore[call-overload]diff --git a/pixi.lock b/pixi.lockindex a1346bcb9f..f868e63fc6 100644--- a/pixi.lock+++ b/pixi.lock@@ -92,13 +92,12 @@ environments:- pypi: https://files.pythonhosted.org/packages/8f/d7/9322c609343d929e75e7e5e6255e614fcc67572cfd083959cdef3b7aad79/docutils-0.21.2-py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/04/96/92447566d16df59b2a776c0fb82dbc4d9e07cd95062562af01e408583fc4/itsdangerous-2.2.0-py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/c0/5a/9cac0c82afec3d09ccd97c8b6502d48f165f9124db81b4bcb90b4af974ee/jedi-0.19.2-py2.py3-none-any.whl+ - pypi: https://files.pythonhosted.org/packages/32/ee/7e042a13e93f09c24618dc804f01849735d81740f8b74827124ff7fc8396/loro-1.5.0-cp312-cp312-macosx_11_0_arm64.whl- pypi: https://files.pythonhosted.org/packages/3f/08/83871f3c50fc983b88547c196d11cf8c3340e37c32d2e9d6152abe2c61f7/Markdown-3.7-py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/41/c1/e9bc6b67c774e7c1f939c91ea535f18f7644fedc61b20d6baa861ad52b34/narwhals-1.33.0-py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/c6/ac/dac4a63f978e4dcb3c6d3a78c4d8e0192a113d288502a1216950c41b1027/parso-0.8.4-py2.py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/04/8b/30f930733afe425e3cbfc0e1468a30a18942350c1a8816acfade80c005c4/psutil-7.0.0-cp36-abi3-macosx_11_0_arm64.whl- - pypi: https://files.pythonhosted.org/packages/95/13/59d7c4859f8729b56322a8e30d5d6d715b3e15c6e5a740ac3d3e564e094e/pycrdt-0.11.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl- pypi: https://files.pythonhosted.org/packages/eb/f5/b9e2a42aa8f9e34d52d66de87941ecd236570c7ed2e87775ed23bbe4e224/pymdown_extensions-10.14.3-py3-none-any.whl- - pypi: https://files.pythonhosted.org/packages/02/49/1c79e0906b6ff551fb0894168763f705bf980864739572b2815ecd3c9df0/ruff-0.9.10-py3-none-macosx_11_0_arm64.whl- pypi: https://files.pythonhosted.org/packages/a0/4b/528ccf7a982216885a1ff4908e886b8fb5f19862d1962f56a3fce2435a70/starlette-0.46.1-py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/61/14/33a3a1352cfa71812a3a21e8c9bfb83f60b0011f5e36f2b1399d51928209/uvicorn-0.34.0-py3-none-any.whl- pypi: https://files.pythonhosted.org/packages/3d/69/1a681dd6f02180916f116894181eab8b2e25b31e484c5d0eae637ec01f7c/websockets-15.0.1-cp312-cp312-macosx_11_0_arm64.whl@@ -623,6 +622,11 @@ packages:purls: []size: 46438timestamp: 1727963202283+- pypi: https://files.pythonhosted.org/packages/32/ee/7e042a13e93f09c24618dc804f01849735d81740f8b74827124ff7fc8396/loro-1.5.0-cp312-cp312-macosx_11_0_arm64.whl+ name: loro+ version: 1.5.0+ sha256: 3ebb8d76fbd6a204b59c4a2c935b26898e3607942dc5855b7c45d52278987090+ requires_python: '>=3.8'- conda: https://conda.anaconda.org/conda-forge/osx-arm64/make-4.4.1-hc9fafa5_2.condasha256: 90ca65e788406d9029ae23ad4bd944a8b5353ad5f59bd6ce326f980cde46f37emd5: 9f44ef1fea0a25d6a3491c58f3af8460@@ -920,24 +924,6 @@ packages:purls: []size: 110100timestamp: 1733195786147-- pypi: https://files.pythonhosted.org/packages/95/13/59d7c4859f8729b56322a8e30d5d6d715b3e15c6e5a740ac3d3e564e094e/pycrdt-0.11.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl- name: pycrdt- version: 0.11.1- sha256: fdb6b0d6620caf1be0b6a829a9eae6ffeec1d9e7d9ec4bcc4c3b3f21922d43c5- requires_dist:- - anyio>=4.4.0,<5.0.0- - pytest>=7.4.2,<8 ; extra == 'test'- - pytest-mypy-testing ; extra == 'test'- - anyio ; extra == 'test'- - trio>=0.25.1,<0.27 ; extra == 'test'- - pydantic>=2.5.2,<3 ; extra == 'test'- - mypy ; extra == 'test'- - coverage[toml]>=7 ; extra == 'test'- - exceptiongroup ; python_full_version < '3.11' and extra == 'test'- - mkdocs ; extra == 'docs'- - mkdocs-material ; extra == 'docs'- - mkdocstrings[python] ; extra == 'docs'- requires_python: '>=3.9'- conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.19.1-pyhd8ed1ab_0.condasha256: 28a3e3161390a9d23bc02b4419448f8d27679d9e2c250e29849e37749c8de86bmd5: 232fb4577b6687b2d503ef8e254270c9@@ -1032,11 +1018,6 @@ packages:- pkg:pypi/rich?source=hash-mappingsize: 200323timestamp: 1743371105291-- pypi: https://files.pythonhosted.org/packages/02/49/1c79e0906b6ff551fb0894168763f705bf980864739572b2815ecd3c9df0/ruff-0.9.10-py3-none-macosx_11_0_arm64.whl- name: ruff- version: 0.9.10- sha256: 5284dcac6b9dbc2fcb71fdfc26a217b2ca4ede6ccd57476f52a587451ebe450d- requires_python: '>=3.7'- conda: https://conda.anaconda.org/conda-forge/noarch/setuptools-78.1.0-pyhff2d567_0.condasha256: d4c74d2140f2fbc72fe5320cbd65f3fd1d1f7832ab4d7825c37c38ab82440ae2md5: a42da9837e46c53494df0044c3eb1f53