[IPython-dev] An idea for `iypthon notebook` server CTRL+C (^C)
Thu Jun 14 05:24:24 CDT 2012
On 14 June 2012 10:50, Flubber <firstname.lastname@example.org> wrote:
> I am aware of that, I just expressed my opinion regarding the words said
> in the YouTube video that ^C (CTRL+C) in terminal will generate a Keyboard
> Interrupt thus closing the server. The speaker clearly specified that this
> will be handled in the future and at current time (in video at conference)
> isn't fixed. So, I thought to give you guys and idea to try and spawn the
> process similar to "ipython notebook &" and maybe redirect the stdout
> output to a log or similarly.
I think you're confused about this - we *want* Ctrl+C in the terminal to
shut the server down. It's not a bug. At present it's the simplest way to
stop the server.
If we didn't want that, it would be easy to catch the exception and keep
the server running.
P.S. If you want to reply, please send it to the mailing list, rather than
me personally: email@example.com
> All the best and,
> Keep up the good work
> --- On Tue, 5/15/12, Thomas Kluyver <firstname.lastname@example.org<http://email@example.com>>
> > From: Thomas Kluyver <firstname.lastname@example.org<http://email@example.com>
> > Subject: Re: [IPython-dev] An idea for `iypthon notebook` server CTRL+C
> > To: "IPython developers list" <firstname.lastname@example.org<http://email@example.com>>,
> firstname.lastname@example.org <http://email@example.com>
> > Date: Tuesday, May 15, 2012, 10:42 AM
> > Hi,
> > Flubber:
> > but
> > if the server crashes upon CTRL+C (the `ipython notebook`),
> > then, couldn't
> > you spawn the server in a mirror
> > shell/terminal/console/whatever similar to the QT
> > one?
> > I'm not quite clear about what you're suggesting.
> > It's not a crash - pressing Ctrl+C in the terminal where
> > you started the notebook is the way to shut it down. Ctrl+C
> > within a notebook doesn't affect the server - the
> > browser will handle it, generally as a copy command.
> > Thanks,
> > Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev