Re: [Matplotlib-users] ipython --pylab without namespace pollution?
Ryan May wrote: Put this in your ~/.ipython/ipythonrc: pylab_import_all 0 I finally got around to doing this, and found: # === # Deprecation note: you should look into modifying ipy_user_conf.py (located # in ~/.ipython or ~/_ipython, depending on your platform) instead, it's a # more flexible and robust (and better supported!) configuration # method. # === So I took that to heart, and added: o.pylab_import_all = 0 to my ipy_user_conf.py file, and that had the same effect. thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ipython --pylab without namespace pollution?
On Mon, Jul 27, 2009 at 2:40 PM, Christopher Barker chris.bar...@noaa.govwrote: Ryan May wrote: Put this in your ~/.ipython/ipythonrc: pylab_import_all 0 I finally got around to doing this, and found: # === # Deprecation note: you should look into modifying ipy_user_conf.py (located # in ~/.ipython or ~/_ipython, depending on your platform) instead, it's a # more flexible and robust (and better supported!) configuration # method. # === So I took that to heart, and added: o.pylab_import_all = 0 to my ipy_user_conf.py file, and that had the same effect. Good to know. When I get around to that FAQ entry, I'll be sure to include that nugget. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ipython --pylab without namespace pollution?
On Wed, Jul 22, 2009 at 6:09 PM, Christopher Barker chris.bar...@noaa.govwrote: Hi folks, Does anyone know if there is a way to use ipython with the advantages of the -pylab option (separate gui thread, etc.), but without the whole pylab namespace getting sucked in? Put this in your ~/.ipython/ipythonrc: pylab_import_all 0 That gives you exactly what you want. In my case, I also made a profile that imports numpy as np and matplotlib.pyplot as plt, so that I can get the equivalent of the ease pylab without the pollution. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ipython --pylab without namespace pollution?
On Wed, Jul 22, 2009 at 8:04 PM, Ryan Mayrma...@gmail.com wrote: On Wed, Jul 22, 2009 at 6:09 PM, Christopher Barker chris.bar...@noaa.gov wrote: Hi folks, Does anyone know if there is a way to use ipython with the advantages of the -pylab option (separate gui thread, etc.), but without the whole pylab namespace getting sucked in? Put this in your ~/.ipython/ipythonrc: pylab_import_all 0 That gives you exactly what you want. In my case, I also made a profile that imports numpy as np and matplotlib.pyplot as plt, so that I can get the equivalent of the ease pylab without the pollution. Hey Ryan -- could you write up a sphinx/rest FAQ that describes all these steps in detail, eg how you create the profile and how you start ipython, so we can add it to the site docs? If you are uncomfortable with the docs, I can apply the patch. Thanks JDH -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ipython --pylab without namespace pollution?
On Wed, Jul 22, 2009 at 8:34 PM, John Hunter jdh2...@gmail.com wrote: On Wed, Jul 22, 2009 at 8:04 PM, Ryan Mayrma...@gmail.com wrote: On Wed, Jul 22, 2009 at 6:09 PM, Christopher Barker chris.bar...@noaa.gov wrote: Hi folks, Does anyone know if there is a way to use ipython with the advantages of the -pylab option (separate gui thread, etc.), but without the whole pylab namespace getting sucked in? Put this in your ~/.ipython/ipythonrc: pylab_import_all 0 That gives you exactly what you want. In my case, I also made a profile that imports numpy as np and matplotlib.pyplot as plt, so that I can get the equivalent of the ease pylab without the pollution. Hey Ryan -- could you write up a sphinx/rest FAQ that describes all these steps in detail, eg how you create the profile and how you start ipython, so we can add it to the site docs? If you are uncomfortable with the docs, I can apply the patch. I'm willing to. However, I just noticed that with just the pylab_import_all 0, you get the import numpy as np and import matplotlib.pyplot as plt automatically. Also, nicely, these don't show up when you type 'whos'. This is with ipython 0.9.1. Should I just add the pylab_import_all 0 to the FAQ? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma Sent from Norman, Oklahoma, United States -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] ipython --pylab without namespace pollution?
On Wed, Jul 22, 2009 at 8:50 PM, Ryan Mayrma...@gmail.com wrote: I'm willing to. However, I just noticed that with just the pylab_import_all 0, you get the import numpy as np and import matplotlib.pyplot as plt automatically. Also, nicely, these don't show up when you type 'whos'. This is with ipython 0.9.1. Should I just add the pylab_import_all 0 to the FAQ? Should be enough, but it would be nice to have a little bit on how to write a profile to add extra imports (eg scipy as sp) to an ipython profile and load it in the same FAQ. Yes, they could find it reading the ipython docs, but the easier it is to get the info the more useful it will be. -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users