[IPython-dev] MultipleInstanceError

MinRK benjaminrk at gmail.com
Sun Jun 30 23:33:59 EDT 2013


This shouldn't be something that has changed since 0.11. Are you seeing a
difference between 0.13 and master?

The workaround is to not use `instance` to create new instances of objects.
 The result will be that methods asking for the global instance will
retrieve the original global instance, as opposed to the new one. I don't
know if this is acceptable or not.



On Sun, Jun 30, 2013 at 7:44 PM, Fernando Perez <fperez.net at gmail.com>wrote:

> Mmh, I'm not sure there's one at this point. Min might know, the
> current enforcement of the single-instance rule is wired deep inside
> the config machinery.
>
> On Sun, Jun 30, 2013 at 7:23 PM, Aaron Meurer <asmeurer at gmail.com> wrote:
> > So what is the workaround for PuDB?
> >
> > Aaron Meurer
> >
> > On Sun, Jun 30, 2013 at 9:21 PM, Fernando Perez <fperez.net at gmail.com>
> wrote:
> >> Indeed, way back when IPython made blunt assumptions about being more
> >> or less in control of the user session, and created lots of global
> >> state. That made sense when it was only an interactive user shell, but
> >> now that it's a service to manage namespaces, its core should be much
> >> more constrained in how it pollutes global structures.
> >>
> >> Unfortunately as Thomas said, cleaning this up takes time and isn't at
> >> the top of the priority list.
> >>
> >> Cheers,
> >>
> >> f
> >>
> >> On Sun, Jun 30, 2013 at 8:31 AM, Thomas Kluyver <takowl at gmail.com>
> wrote:
> >>> Various parts of the IPython machinery assume that there's only one
> instance
> >>> in a given process, and would break with multiple IPython shells in a
> single
> >>> process. We're slowly moving away from that, but it's not high
> priority for
> >>> us.
> >>>
> >>> Thomas
> >>>
> >>>
> >>> On 30 June 2013 05:52, Aaron Meurer <asmeurer at gmail.com> wrote:
> >>>>
> >>>> In IPython dev, if you try to start an IPython instance from within an
> >>>> IPython instance, it raises MultipleInstanceError. What is the purpose
> >>>> of this? It breaks a use-case of mine, which is to start PuDB from
> >>>> within IPython, then to open the IPython interpreter from within PuDB
> >>>> while debugging?  Is the new way to do things to somehow reattach to
> >>>> the same IPython instance?
> >>>>
> >>>> I've CCd the PuDB list.
> >>>>
> >>>> Aaron Meurer
> >>>> _______________________________________________
> >>>> IPython-dev mailing list
> >>>> IPython-dev at scipy.org
> >>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> IPython-dev mailing list
> >>> IPython-dev at scipy.org
> >>> http://mail.scipy.org/mailman/listinfo/ipython-dev
> >>>
> >>
> >>
> >>
> >> --
> >> Fernando Perez (@fperez_org; http://fperez.org)
> >> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
> >> fernando.perez-at-berkeley: contact me here for any direct mail
> >> _______________________________________________
> >> IPython-dev mailing list
> >> IPython-dev at scipy.org
> >> http://mail.scipy.org/mailman/listinfo/ipython-dev
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
>
> --
> Fernando Perez (@fperez_org; http://fperez.org)
> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
> fernando.perez-at-berkeley: contact me here for any direct mail
> _______________________________________________
> 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/20130630/df8f0834/attachment.html>


More information about the IPython-dev mailing list