[IPython-dev] iPython 3.0-dev --matplotlib inline

MinRK benjaminrk at gmail.com
Thu Mar 5 01:12:32 EST 2015


On Wed, Mar 4, 2015 at 9:36 PM, Matthias Bussonnier <
bussonniermatthias at gmail.com> wrote:

>
> Le 4 mars 2015 à 21:14, Kenneth Tran <one at kentran.net> a écrit :
>
> It seems that doing this is not the same as %pylab inline. I tried it but
> this line failed.
> *    plot(range(0,9))*
>
> I tried putting %pylab inline in the startup.ipy file but it doesn't work
> either.
>
> Am I missing something?
>
>
> You should not use %pylab, or --pylab.
> it is undocumented and deprecated.
>
> That being said,
>
> Do we support startup.ipy files ?
>

yes


> --
> M
>
>
> -K
>
>
> On Fri, Feb 6, 2015 at 12:27 PM, MinRK <benjaminrk at gmail.com> wrote:
>
>> For completeness, you can create a startup file that always enables
>> inline matplotlib with:
>>
>> echo "get_ipython().enable_matplotlib('inline')" > ~/.ipython/profile_default/startup/matplotlib_inline.py
>>
>>>>
>> On Fri, Feb 6, 2015 at 12:24 PM, MinRK <benjaminrk at gmail.com> wrote:
>>
>>> Passing kernel arguments on the notebook server CLI was deprecated in
>>> 2.0, and removed in 3.0. You can use the `%matplotlib inline` magic in your
>>> notebook to set up matplotlib, or enable matplotlib in your
>>> `ipython_config.py` or startup files in your IPython profile.
>>>
>>> -MinRK
>>>
>>> On Fri, Feb 6, 2015 at 12:19 PM, John Omernik <john at omernik.com> wrote:
>>>
>>>> In 2.3, I would run my ipython with --matplotlib inline, in the 3.0 I
>>>> am getting
>>>>
>>>> [C 14:16:28.361 NotebookApp] Bad config encountered during
>>>> initialization:
>>>>
>>>> [C 14:16:28.362 NotebookApp] Unrecognized flag: '--matplotlib'
>>>>
>>>> Any thoughts? Do I need to change something to have the same affect?
>>>>
>>>> Thanks
>>>>
>>>> John
>>>> _______________________________________________
>>>> 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
>>
>>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150304/d57643fd/attachment.html>


More information about the IPython-dev mailing list