[IPython-dev] kernel restart

MinRK benjaminrk@gmail....
Thu Jun 21 00:18:07 CDT 2012


On Wed, Jun 20, 2012 at 10:11 PM, Bob McElrath <bob+ipython@mcelrath.org>wrote:

> MinRK [benjaminrk@gmail.com] wrote:
> >
> > All code in cells runs on the kernel, and the kernel cannot restart
> itself.
> > Restart involves killing the kernel, and logically enough, a kernel
> cannot
> > start up again *after* it has killed itself.
> >
> > If you want to clean the namespace and not halt the whole process, this
> is what
> > %reset is for.
>
> This is insufficient as a programmatic restart.  Imported packages are not
> cleanly re-imported.  See the caveats surrounding reload() for instance.
>
> %reset seems to be a bit worse though, as far as I can tell it does NOT
> reload()
> modules (does not recompile them).  What would be required to make %reset
> see
> source changes on imported modules?
>
> So maybe it wasn't a stupid question, as this functionality doesn't
> exist...
>

Nope - it doesn't and I don't believe it can.


>
> --
> Cheers, Bob McElrath
>
> "The individual has always had to struggle to keep from being overwhelmed
> by
> the tribe.  If you try it, you will be lonely often, and sometimes
> frightened.
> But no price is too high to pay for the privilege of owning yourself."
>    -- Friedrich Nietzsche
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20120620/c3984e65/attachment.html 


More information about the IPython-dev mailing list