From: Nathan G. <nat...@gm...> - 2014-07-30 17:26:46
|
You would use "%matplotlib inline" if you want the plots to show up inline in the notebook. If you want to use one of the gui backends, it would be "%matplotlib <backend>". More detail here: http://ipython.org/ipython-doc/2/api/generated/IPython.core.magics.pylab.html#IPython.core.magics.pylab.PylabMagics.matplotlib Pylab is going to be removed in IPython 3.0 (in fact it's already gone in master) since it has several bad interactions with the rest of the numpy/scipy universe and leads to un-reproducible code. See this blog post for more detail on why using pylab is a bad idea: https://carreau.github.io/posts/10-No-PyLab-Thanks.ipynb.html On Wed, Jul 30, 2014 at 10:19 AM, Matthew Brett <mat...@gm...> wrote: > Hi, > > On Wed, Jul 30, 2014 at 9:30 AM, Benjamin Root <ben...@ou...> wrote: > > I think it is mostly an issue with how IPython interfaces with > matplotlib. > > If you were running from a pure python prompt, then I would suspect it to > > work (haven't tried myself, though). Note that the --pylab option to > ipython > > is now highly discouraged. Instead, I would try the "%matplotlib > > interactive" cell magic instead (I think that is the right incantation). > > Sorry for being slightly off-topic, but what is the current > recommendation then for interactive plots from the console, if --pylab > is discouraged? > > Cheers, > > Matthew > > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |