Skip to content

Is it possible to shut down the server from inside a python kernel? #3614

Answered by dmadisetti
miccoli asked this question in Q&A
Discussion options

You must be logged in to vote

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 run input() if you want to pass information in interactively.

not exactly graceful, but you can also do:

import os
os._exit(0)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@miccoli
Comment options

@dmadisetti
Comment options

@miccoli
Comment options

Answer selected by miccoli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants