[IPython-dev] An idea for `iypthon notebook` server CTRL+C (^C)
Thomas Kluyver
takowl at gmail.com
Thu Jun 14 06:24:24 EDT 2012
On 14 June 2012 10:50, Flubber <flubberhk90 at yahoo.com> 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.
Thanks,
Thomas
P.S. If you want to reply, please send it to the mailing list, rather than
me personally: ipython-dev at scipy.org
>
> All the best and,
> Keep up the good work
>
> --- On Tue, 5/15/12, Thomas Kluyver <takowl at gmail.com<http://mc/compose?to=takowl@gmail.com>>
> wrote:
>
> > From: Thomas Kluyver <takowl at gmail.com<http://mc/compose?to=takowl@gmail.com>
> >
> > Subject: Re: [IPython-dev] An idea for `iypthon notebook` server CTRL+C
> (^C)
> > To: "IPython developers list" <ipython-dev at scipy.org<http://mc/compose?to=ipython-dev@scipy.org>>,
> flubberhk90 at yahoo.com <http://mc/compose?to=flubberhk90@yahoo.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...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120614/e22dd867/attachment.html>
More information about the IPython-dev
mailing list