##// END OF EJS Templates
Small fix to pylab imports
fperez -
Show More
@@ -4,7 +4,7 b''
4 4 All the matplotlib support code was co-developed with John Hunter,
5 5 matplotlib's author.
6 6
7 $Id: Shell.py 2156 2007-03-19 02:32:19Z fperez $"""
7 $Id: Shell.py 2164 2007-03-20 00:15:03Z fperez $"""
8 8
9 9 #*****************************************************************************
10 10 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
@@ -951,7 +951,7 b' class IPShellMatplotlib(IPShell):'
951 951 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
952 952 IPShell.__init__(self,argv,user_ns,user_global_ns,debug,
953 953 shell_class=MatplotlibShell)
954 _load_pylab(user_ns)
954 _load_pylab(self.IP.user_ns)
955 955
956 956 class IPShellMatplotlibGTK(IPShellGTK):
957 957 """Subclass IPShellGTK with MatplotlibMTShell as the internal shell.
@@ -961,7 +961,7 b' class IPShellMatplotlibGTK(IPShellGTK):'
961 961 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
962 962 IPShellGTK.__init__(self,argv,user_ns,user_global_ns,debug,
963 963 shell_class=MatplotlibMTShell)
964 _load_pylab(user_ns)
964 _load_pylab(self.IP.user_ns)
965 965
966 966 class IPShellMatplotlibWX(IPShellWX):
967 967 """Subclass IPShellWX with MatplotlibMTShell as the internal shell.
@@ -971,7 +971,7 b' class IPShellMatplotlibWX(IPShellWX):'
971 971 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
972 972 IPShellWX.__init__(self,argv,user_ns,user_global_ns,debug,
973 973 shell_class=MatplotlibMTShell)
974 _load_pylab(user_ns)
974 _load_pylab(self.IP.user_ns)
975 975
976 976 class IPShellMatplotlibQt(IPShellQt):
977 977 """Subclass IPShellQt with MatplotlibMTShell as the internal shell.
@@ -981,7 +981,7 b' class IPShellMatplotlibQt(IPShellQt):'
981 981 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
982 982 IPShellQt.__init__(self,argv,user_ns,user_global_ns,debug,
983 983 shell_class=MatplotlibMTShell)
984 _load_pylab(user_ns)
984 _load_pylab(self.IP.user_ns)
985 985
986 986 class IPShellMatplotlibQt4(IPShellQt4):
987 987 """Subclass IPShellQt4 with MatplotlibMTShell as the internal shell.
@@ -991,7 +991,7 b' class IPShellMatplotlibQt4(IPShellQt4):'
991 991 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
992 992 IPShellQt4.__init__(self,argv,user_ns,user_global_ns,debug,
993 993 shell_class=MatplotlibMTShell)
994 _load_pylab(user_ns)
994 _load_pylab(self.IP.user_ns)
995 995
996 996 #-----------------------------------------------------------------------------
997 997 # Factory functions to actually start the proper thread-aware shell
General Comments 0
You need to be logged in to leave comments. Login now