##// END OF EJS Templates
Small fix to pylab imports
fperez -
Show More
@@ -4,7 +4,7 b''
4 All the matplotlib support code was co-developed with John Hunter,
4 All the matplotlib support code was co-developed with John Hunter,
5 matplotlib's author.
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 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
10 # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
@@ -951,7 +951,7 b' class IPShellMatplotlib(IPShell):'
951 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
951 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
952 IPShell.__init__(self,argv,user_ns,user_global_ns,debug,
952 IPShell.__init__(self,argv,user_ns,user_global_ns,debug,
953 shell_class=MatplotlibShell)
953 shell_class=MatplotlibShell)
954 _load_pylab(user_ns)
954 _load_pylab(self.IP.user_ns)
955
955
956 class IPShellMatplotlibGTK(IPShellGTK):
956 class IPShellMatplotlibGTK(IPShellGTK):
957 """Subclass IPShellGTK with MatplotlibMTShell as the internal shell.
957 """Subclass IPShellGTK with MatplotlibMTShell as the internal shell.
@@ -961,7 +961,7 b' class IPShellMatplotlibGTK(IPShellGTK):'
961 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
961 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
962 IPShellGTK.__init__(self,argv,user_ns,user_global_ns,debug,
962 IPShellGTK.__init__(self,argv,user_ns,user_global_ns,debug,
963 shell_class=MatplotlibMTShell)
963 shell_class=MatplotlibMTShell)
964 _load_pylab(user_ns)
964 _load_pylab(self.IP.user_ns)
965
965
966 class IPShellMatplotlibWX(IPShellWX):
966 class IPShellMatplotlibWX(IPShellWX):
967 """Subclass IPShellWX with MatplotlibMTShell as the internal shell.
967 """Subclass IPShellWX with MatplotlibMTShell as the internal shell.
@@ -971,7 +971,7 b' class IPShellMatplotlibWX(IPShellWX):'
971 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
971 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
972 IPShellWX.__init__(self,argv,user_ns,user_global_ns,debug,
972 IPShellWX.__init__(self,argv,user_ns,user_global_ns,debug,
973 shell_class=MatplotlibMTShell)
973 shell_class=MatplotlibMTShell)
974 _load_pylab(user_ns)
974 _load_pylab(self.IP.user_ns)
975
975
976 class IPShellMatplotlibQt(IPShellQt):
976 class IPShellMatplotlibQt(IPShellQt):
977 """Subclass IPShellQt with MatplotlibMTShell as the internal shell.
977 """Subclass IPShellQt with MatplotlibMTShell as the internal shell.
@@ -981,7 +981,7 b' class IPShellMatplotlibQt(IPShellQt):'
981 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
981 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
982 IPShellQt.__init__(self,argv,user_ns,user_global_ns,debug,
982 IPShellQt.__init__(self,argv,user_ns,user_global_ns,debug,
983 shell_class=MatplotlibMTShell)
983 shell_class=MatplotlibMTShell)
984 _load_pylab(user_ns)
984 _load_pylab(self.IP.user_ns)
985
985
986 class IPShellMatplotlibQt4(IPShellQt4):
986 class IPShellMatplotlibQt4(IPShellQt4):
987 """Subclass IPShellQt4 with MatplotlibMTShell as the internal shell.
987 """Subclass IPShellQt4 with MatplotlibMTShell as the internal shell.
@@ -991,7 +991,7 b' class IPShellMatplotlibQt4(IPShellQt4):'
991 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
991 def __init__(self,argv=None,user_ns=None,user_global_ns=None,debug=1):
992 IPShellQt4.__init__(self,argv,user_ns,user_global_ns,debug,
992 IPShellQt4.__init__(self,argv,user_ns,user_global_ns,debug,
993 shell_class=MatplotlibMTShell)
993 shell_class=MatplotlibMTShell)
994 _load_pylab(user_ns)
994 _load_pylab(self.IP.user_ns)
995
995
996 #-----------------------------------------------------------------------------
996 #-----------------------------------------------------------------------------
997 # Factory functions to actually start the proper thread-aware shell
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