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: kernel process should not be daemonic (#487)
Akshay Agrawal7405e41bdbcb
diff --git a/marimo/_server/sessions.py b/marimo/_server/sessions.pyindex 00657a9e3a..28ebc53879 100644--- a/marimo/_server/sessions.py+++ b/marimo/_server/sessions.py@@ -270,7 +270,10 @@ class Session:self.kernel_task = mp.Process(target=runtime.launch_kernel,args=(self.queue, listener.address, is_edit_mode, configs),- daemon=True,+ # The process can't be a daemon, because daemonic processes+ # can't create children+ # https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Process.daemon # noqa: E501+ daemon=False,)else:# We use threads in run mode to minimize memory consumption;@@ -296,6 +299,8 @@ class Session:self.kernel_task = threading.Thread(target=launch_kernel_with_cleanup,args=(self.queue, listener.address, is_edit_mode, configs),+ # daemon threads can create child processes, unlike+ # daemon processesdaemon=True,)self.kernel_task.start()