Hi folks, I've added this little bit of code to the default ipython -pylab startup:
exec ("import numpy\n" "import numpy as np\n" "import matplotlib\n" "import matplotlib.pylab as pylab\n" "try:\n" " import matplotlib.pyplot as plt\n" "except ImportError:\n" " pass\n" ) in user_ns to try and encourage use of the 'canonical' ways of calling/executing numpy and mpl calls. This is just in my branch, not publicly visible yet. I wanted to know: 1. If I should keep the try/except around. 2. If this is your 'approved' manner of loading. It worries me a bit that if we promote pyplot/plt as the entry point, it needs a proper docstring. Just try 'pylab?' vs 'pyplot?' and you'll see the difference. Cheers, f ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel