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

Wes Turner wes.turner at gmail.com
Thu Jul 2 21:16:03 EDT 2015


On Thu, Jul 2, 2015 at 8:14 PM, Wes Turner <wes.turner at gmail.com> wrote:

> It's probably the wrong place to parametrize,
> but would it be possible to just sbclass the
> CPython 2/3 kernels?
>
> e.g. CPython 2 (matplotlib), CPython3
>
> Or would that encourage more incompatible notebooks
> (without kernelspecs)?
>

... docs:

*
https://github.com/ipython/ipython/wiki/IPython%20kernels%20for%20other%20languages#creating-new-ipython-kernels
* http://ipython.org/ipython-doc/dev/development/kernels.html


>
> On Thu, Jul 2, 2015 at 8:08 PM, William Stein <wstein at gmail.com> wrote:
>
>> Thanks!
>>
>> (I've recorded this here for the record
>>
>>   https://github.com/sagemathinc/smc/issues/37
>>
>> On Thu, Jul 2, 2015 at 5:40 PM, Kyle Kelley <rgbkrk at gmail.com> wrote:
>> > From afar, I'll also respond by just quoting Min:
>> >
>> >> "There seems to be a question of whether such a hook should be in
>> >> matplotlib or IPython, and each time we start the conversation, it
>> wanders
>> >> off to other topics before we resolve it well enough for a PR."
>> >
>> > Just about every time.
>> >
>> > Related issue for it: https://github.com/ipython/ipython/issues/6424
>> >
>> >
>> >
>> > On Thu, Jul 2, 2015 at 7:35 PM, MinRK <benjaminrk at gmail.com> wrote:
>> >>
>> >> I also enjoy that the three of us are all sitting next to each other,
>> >> writing separate responses to the same email. I think it's Thomas'
>> turn,
>> >> now.
>> >>
>> >> -MinRK
>> >>
>> >> On Thu, Jul 2, 2015 at 5:33 PM, MinRK <benjaminrk at gmail.com> wrote:
>> >>>
>> >>> We get this report plenty, too. The idea seems to be that we should
>> use
>> >>> an importhook to make inline the default backend with IPython is
>> running.
>> >>> There seems to be a question of whether such a hook should be in
>> matplotlib
>> >>> or IPython, and each time we start the conversation, it wanders off
>> to other
>> >>> topics before we resolve it well enough for a PR. Hopefully we can
>> decide on
>> >>> an implementation next week at SciPy, and ship it.
>> >>>
>> >>> I have a sample import hook that does exactly this in my startup
>> files.
>> >>> I’m not 100% certain it’s the right thing to do, but I would be happy
>> to see
>> >>> something like this in either IPython or matplotlib.
>> >>>
>> >>> -MinRK
>> >>>
>> >>>
>> >>> On Thu, Jul 2, 2015 at 5:16 PM, William Stein <wstein at gmail.com>
>> wrote:
>> >>>>
>> >>>> <Rant>
>> >>>> Hi,
>> >>>>
>> >>>> I just want to register my frustration that by far the most common
>> >>>> support request I get about IPython use in SageMathCloud is the
>> >>>> following: "To display the plot, I'm tried to pl.show(), and also
>> >>>> pl.savefig('test.png') as suggested by some answers online, but
>> >>>> neither did the job. What is the correct command?"
>> >>>>
>> >>>> The answer is "%matplotlib inline", and there is a stackoverflow
>> >>>> question here about it:
>> >>>>
>> >>>>
>> >>>>
>> http://stackoverflow.com/questions/19410042/how-to-make-ipython-notebook-inline-matplotlib-graphics
>> >>>>
>> >>>> I'm aware that disallowing the `--pylab inline` option when starting
>> >>>> ipython on the command line was a choice that you made on purpose.
>> >>>>
>> >>>> No response required -- I'm just being a humble tech support person
>> >>>> watching out for users :-)
>> >>>>
>> >>>> </Rant>
>> >>>> _______________________________________________
>> >>>> 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
>> >>
>> >
>> >
>> >
>> > --
>> > Kyle Kelley (@rgbkrk; lambdaops.com, developer.rackspace.com)
>> >
>> > _______________________________________________
>> > IPython-dev mailing list
>> > IPython-dev at scipy.org
>> > http://mail.scipy.org/mailman/listinfo/ipython-dev
>> >
>>
>>
>>
>> --
>> William (http://wstein.org)
>> _______________________________________________
>> 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/20150702/9b701b65/attachment.html>


More information about the IPython-dev mailing list