Is it possible to shut down the server from inside a python kernel? #3614
-
I would like to add a button inside an app that shuts down the server. More explicitly:
I searched the docs, but was unable to figure out how to shut down the server. Currently to quit an app I close the window and hit |
Beta Was this translation helpful? Give feedback.
Answered by
dmadisetti
Jan 31, 2025
Replies: 1 comment 3 replies
-
Interesting usecase. You can also run marimo as a script which will run until completion (e.g. not exactly graceful, but you can also do: import os
os._exit(0) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
miccoli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interesting usecase.
You can also run marimo as a script which will run until completion (e.g.
python notebook.py
) and pass in command line arguments. Script mode will also runinput()
if you want to pass information in interactively.not exactly graceful, but you can also do: