Open DavisVaughan opened 3 days ago
Oh ask_exit
is also how ipython implements the exit
and quit
commands! i.e. when you type that directly at the console it:
ExitAutoCall
https://github.com/ipython/ipython/blob/9b52ad5d0fae168679a63ecc8743541e2f127d92/IPython/core/autocall.py#L51-L57ask_exit()
replySo yea I doubt there is any way this would get removed and is probably safe to use
Otherwise R just dies and Jupyter throws warnings that R isn't responding to
is_complete_request
and friendsWe could probably send the
ask_exit
payload from the kernel -> frontend, telling the frontend to request a shutdown? https://jupyter-client.readthedocs.io/en/stable/messaging.html#payloads-deprecatedPayloads are deprecated but there is currently no alternative, so I feel like we should just use it for now (its been deprecated for over 9 years...)
It looks like you send it as part of an
execute_reply
https://github.com/jupyter/jupyter_console/blob/fddbc42d2e0be85feace1fe783a05e2b569fceae/jupyter_console/ptshell.py#L743-L767