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.

Add Additional 'unclonables' (#1798)

Dylan Madisetti1df6c0361f4f
diff --git a/marimo/_runtime/executor.py b/marimo/_runtime/executor.py
index bbf53bd0b5..604495502a 100644
--- a/marimo/_runtime/executor.py
+++ b/marimo/_runtime/executor.py
@@ -28,7 +28,15 @@ UNCLONABLE_TYPES = [
"marimo._runtime.state.SetFunctor",
]
-UNCLONABLE_MODULES = ["_asyncio", "marimo._ast", "marimo._plugins.ui"]
+UNCLONABLE_MODULES = set(
+ [
+ "_asyncio",
+ "_io",
+ "marimo._ast",
+ "marimo._plugins.ui",
+ "numpy.lib.npyio",
+ ]
+)
PRIMITIVES = (weakref.ref, str, numbers.Number, type(None))
EXECUTION_TYPES: dict[str, Type[Executor]] = {}