Show More
@@ -885,17 +885,15 b' Currently the magic system has the following functions:\\n"""' | |||||
885 | user_ns = self.shell.user_ns |
|
885 | user_ns = self.shell.user_ns | |
886 | internal_ns = self.shell.internal_ns |
|
886 | internal_ns = self.shell.internal_ns | |
887 | user_config_ns = self.shell.user_config_ns |
|
887 | user_config_ns = self.shell.user_config_ns | |
888 |
out = [ |
|
888 | out = [ i for i in user_ns | |
889 | typelist = parameter_s.split() |
|
889 | if not i.startswith('_') \ | |
|
890 | and not (i in internal_ns or i in user_config_ns) ] | |||
890 |
|
891 | |||
891 | for i in user_ns: |
|
892 | typelist = parameter_s.split() | |
892 | if not (i.startswith('_') or i.startswith('_i')) \ |
|
|||
893 | and not (i in internal_ns or i in user_config_ns): |
|
|||
894 |
|
|
893 | if typelist: | |
895 | if type(user_ns[i]).__name__ in typelist: |
|
894 | typeset = set(typelist) | |
896 | out.append(i) |
|
895 | out = [i for i in out if type(i).__name__ in typeset] | |
897 | else: |
|
896 | ||
898 | out.append(i) |
|
|||
899 | out.sort() |
|
897 | out.sort() | |
900 | return out |
|
898 | return out | |
901 |
|
899 |
General Comments 0
You need to be logged in to leave comments.
Login now