From: Fernando P. <fpe...@gm...> - 2014-07-30 18:49:31
|
On Wed, Jul 30, 2014 at 10:26 AM, Nathan Goldbaum <nat...@gm...> wrote: > 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. Quick clarifications: - `--pylab` as a command-line flag is strongly discouraged and we will likely remove it (having it in that location requires really awkward special-case code everywhere). But we'll probably keep the %pylab magic indefinitely, since it's useful for quick-and-dirty command-line work where you don't care about namespace pollution, just about minimizing typing and namespace access for convenience. - The %matplotlib magic can also be used without args, case in which it works like %pylab used to, and will pick up the user's default backend: In [1]: %matplotlib Using matplotlib backend: TkAgg In [2]: import matplotlib.pyplot as plt In [3]: plt.plot([1,2,3]) Out[3]: [<matplotlib.lines.Line2D at 0x4b90ed0>] Cheers f -- Fernando Perez (@fperez_org; http://fperez.org) fperez.net-at-gmail: mailing lists only (I ignore this when swamped!) fernando.perez-at-berkeley: contact me here for any direct mail |