ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 05 Feb 2011 21:27:07 +0100terminate notebook and session, The right way?https://ask.sagemath.org/question/7924/terminate-notebook-and-session-the-right-way/When I start up the notebook interface, the terminal session then is dedicated to the server and sage instance, and does not take input, so far the only way to terminate it is via ctl-c or otherwise close the terminal. I assume if I do this after exiting my browser/notebook session that that is the correct way?
The ctl-d quit and exit commands specified for the terminal mode do not seem to work if you use the notebook?
Checked the docs and could not find a reference to shutting down the notebook, and session.Sat, 05 Feb 2011 17:51:11 +0100https://ask.sagemath.org/question/7924/terminate-notebook-and-session-the-right-way/Answer by kcrisman for <p>When I start up the notebook interface, the terminal session then is dedicated to the server and sage instance, and does not take input, so far the only way to terminate it is via ctl-c or otherwise close the terminal. I assume if I do this after exiting my browser/notebook session that that is the correct way? </p>
<p>The ctl-d quit and exit commands specified for the terminal mode do not seem to work if you use the notebook?</p>
<p>Checked the docs and could not find a reference to shutting down the notebook, and session.</p>
https://ask.sagemath.org/question/7924/terminate-notebook-and-session-the-right-way/?answer=12064#post-id-12064As it turns out, you could even terminate the terminal session via Ctrl-C, make a change in the source code, compile it, and restart the notebook, and as long as you didn't do anything in your browser in the mean time you'd be able to immediately check whether the change were good in the notebook.
You are correct that Ctrl-D would only quite an active command line process. Ctrl-C will kill the notebook server, and then Ctrl-D kills Sage (if, for instance, you did some command line stuff before you did the notebook with the command `notebook()`).
I am a little surprised about no reference to the shut down. That should be somewhere.Sat, 05 Feb 2011 21:27:07 +0100https://ask.sagemath.org/question/7924/terminate-notebook-and-session-the-right-way/?answer=12064#post-id-12064