##// END OF EJS Templates
Make import checks more explicit in %whos...
MinRK -
Show More
@@ -862,18 +862,23 b' Currently the magic system has the following functions:\\n"""'
862 862 seq_types = ['dict', 'list', 'tuple']
863 863
864 864 # for numpy/Numeric arrays, display summary info
865 ndarray_type = None
866 if 'numpy' in sys.modules:
865 867 try:
866 import numpy
868 from numpy import ndarray
867 869 except ImportError:
868 ndarray_type = None
870 pass
869 871 else:
870 ndarray_type = numpy.ndarray.__name__
872 ndarray_type = ndarray.__name__
873
874 array_type = None
875 if 'Numeric' in sys.modules:
871 876 try:
872 import Numeric
877 from Numeric import ArrayType
873 878 except ImportError:
874 array_type = None
879 pass
875 880 else:
876 array_type = Numeric.ArrayType.__name__
881 array_type = ArrayType.__name__
877 882
878 883 # Find all variable names and types so we can figure out column sizes
879 884 def get_vars(i):
General Comments 0
You need to be logged in to leave comments. Login now