[IPython-dev] [EXTERNAL] rant: "%matplotlib inline"

Min RK benjaminrk at gmail.com
Tue Jul 7 01:12:34 EDT 2015



> On Jul 6, 2015, at 22:35, Thomas Kluyver <takowl at gmail.com> wrote:
> 
>> On 6 July 2015 at 12:17, MinRK <benjaminrk at gmail.com> wrote:
>> I already have,
> 
> I see - when you try to import matplotlib.pyplot, it disables itself, does the import inside the finder, and then claims it knows nothing about it. I could see that leading to odd, implementation dependent behaviour if it ends up loading the module twice.

Yup, the way I do it is probably not the best. We can probably do a better job properly integrated into IPython (e.g. don't retrigger the import, just set the mpl backend, etc.). Alternatively, we can delay the IPython call with a callback.

-MinRK

> 
> 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/20150707/707eb387/attachment.html>


More information about the IPython-dev mailing list