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

Wes Turner wes.turner at gmail.com
Fri Jul 3 22:57:49 EDT 2015


Is there a general best practices guideline for writing compatible Python
code (with e.g. explicit or * imports)?
On Jul 3, 2015 9:54 PM, "William Stein" <wstein at gmail.com> wrote:

> Hi,
>
> What do you think the "principle of least surprise" would dictate
> should happen if you install matplotlib, then copy an example from [1]
> (say) into a new IPython notebook in Python mode?
>
>     [ ] 1. It works
>
>     [ ] 2. It silently fails (the current behavior in IPython notebook).
>
> I'm guessing: pretty much everybody wants 1, but since the kernel
> doesn't know if individual commands are coming from a terminal, native
> UI, web browser, or what, then we have 2.    Is the longterm plan to
> enhance the kernel spec to handle the above situation?
>
> Other systems don't have this problem because one can only interact
> with the kernel from either a terminal or a UI, but not both at once.
>
> [1] http://matplotlib.org/examples/pylab_examples/scatter_symbol.html
> _______________________________________________
> 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/20150703/02e1f36f/attachment.html>


More information about the IPython-dev mailing list