Show More
@@ -566,8 +566,18 b' class MatplotlibShellBase:' | |||||
566 | # Build a user namespace initialized with matplotlib/matlab features. |
|
566 | # Build a user namespace initialized with matplotlib/matlab features. | |
567 | user_ns = IPython.ipapi.make_user_ns(user_ns) |
|
567 | user_ns = IPython.ipapi.make_user_ns(user_ns) | |
568 |
|
568 | |||
569 | exec ("import matplotlib\n" |
|
569 | # Import numpy as np/pyplot as plt are conventions we're trying to | |
570 | "import matplotlib.pylab as pylab\n") in user_ns |
|
570 | # somewhat standardize on. Making them available to users by default | |
|
571 | # will greatly help this. | |||
|
572 | exec ("import numpy\n" | |||
|
573 | "import numpy as np\n" | |||
|
574 | "import matplotlib\n" | |||
|
575 | "import matplotlib.pylab as pylab\n" | |||
|
576 | "try:\n" | |||
|
577 | " import matplotlib.pyplot as plt\n" | |||
|
578 | "except ImportError:\n" | |||
|
579 | " pass\n" | |||
|
580 | ) in user_ns | |||
571 |
|
581 | |||
572 | # Build matplotlib info banner |
|
582 | # Build matplotlib info banner | |
573 | b=""" |
|
583 | b=""" |
@@ -1,3 +1,9 b'' | |||||
|
1 | 2008-06-02 Fernando Perez <Fernando.Perez@berkeley.edu> | |||
|
2 | ||||
|
3 | * IPython/Shell.py (MatplotlibShellBase._matplotlib_config): add | |||
|
4 | numpy/np/pyplot/plt imports according to new conventions we're | |||
|
5 | trying to standardize on. This only affects the -pylab mode. | |||
|
6 | ||||
1 | 2008-05-31 *** Released version 0.8.4 |
|
7 | 2008-05-31 *** Released version 0.8.4 | |
2 |
|
8 | |||
3 | 2008-05-31 Fernando Perez <Fernando.Perez@berkeley.edu> |
|
9 | 2008-05-31 Fernando Perez <Fernando.Perez@berkeley.edu> |
General Comments 0
You need to be logged in to leave comments.
Login now