[IPython-dev] use of InteractiveShell and R magic

MinRK benjaminrk at gmail.com
Thu Jun 14 20:38:45 EDT 2012


On Thu, Jun 14, 2012 at 5:31 PM, Thomas Kluyver <takowl at gmail.com> wrote:

> On 15 June 2012 00:30, Brian Granger <ellisonbg at gmail.com> wrote:
> > But don't we have similar assumptions about InteractiveShell being a
> > singleton throughout the code base.  The patterns used by the magic
> > system are by no means unique.  I am not sure I would call this a bug.
>
> I think, and I've mentioned before, that we should gradually try to
> remove this assumption. There are some use cases for having multiple
> InteractiveShell objects in one process. It's one reason I like the
> extension system - it achieves loose coupling without assuming that
> there will only ever be one shell object.
>
> This is a low priority, long term goal, though.
>

Right - the instance() methods are meant as a convenience, not enforcement.
We have a certain amount of functionality that relies on instance() still,
but I think that is appropriately shrinking.

One old singleton-y thing we still really haven't dealt with:
utils.io.stdout/err.


>
> Thomas
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120614/e0ec9741/attachment.html>


More information about the IPython-dev mailing list