[IPython-User] Can't display image from external script

Arnaud Mounier arnaud.mounier@dijon.inra...
Fri Jan 24 05:21:15 CST 2014


Hi Mathias,

Le 24/01/2014 11:16, Matthias BUSSONNIER a écrit :
> Hi Arnaud,
>
> A few comment inline.
>
> Le 24 janv. 2014 à 10:25, Arnaud Mounier a écrit :
>
>> Hi everyone,
>> ...
>> ipython notebook --pylab inline
>
> Try not to start notebook with --pylab flag,
> On IPython !.0 and above prefer the use of %matplotlib inline to have the figure inline,
> on rely on explicit import (even import *), otherwise --pylab will bite you at a later point.
> Also the flag will deprecate at some point, so your notebook might not work anymore.
Thank you for this.


> So in your example, as %run return nothing, nothing is show.
>
> Does it make sense ?
Yes, very much. In fact, I figure out my misunderstanding just after 
sending my message and so I try
to display the png file with the display_png method on the object 
created by Image() and it works so fine.

My first step... ;)

Thank you for your help,

Arnaud.

-- 
« Quand les hommes considèrent certaines situations comme réelles, elles 
sont réelles dans leur conséquence. »
Le théorème de Thomas.

Arnaud Mounier
INRA - UMR Agroécologie 1347
CNRS - ERL IPM 6300 (Plant-Microorganism Interaction)
17, rue Sully - BP 86510 - F-21065 Dijon Cedex - France
Work phone : +33 380 693 167 - Fax : +33 380 693 753

https://www6.dijon.inra.fr/umragroecologie/Personnel/IPM/ITA/MOUNIER-Arnaud


More information about the IPython-User mailing list