Show More
@@ -107,7 +107,7 b' class BaseIPythonApplication(Application):' | |||||
107 | os.path.join(get_ipython_package_dir(), u'config', u'profile', u'default') |
|
107 | os.path.join(get_ipython_package_dir(), u'config', u'profile', u'default') | |
108 | ) |
|
108 | ) | |
109 |
|
109 | |||
110 | config_file_paths = List(Unicode) |
|
110 | config_file_paths = List(Unicode()) | |
111 | def _config_file_paths_default(self): |
|
111 | def _config_file_paths_default(self): | |
112 | return [py3compat.getcwd()] |
|
112 | return [py3compat.getcwd()] | |
113 |
|
113 | |||
@@ -161,7 +161,7 b' class BaseIPythonApplication(Application):' | |||||
161 | auto_create = Bool(False, config=True, |
|
161 | auto_create = Bool(False, config=True, | |
162 | help="""Whether to create profile dir if it doesn't exist""") |
|
162 | help="""Whether to create profile dir if it doesn't exist""") | |
163 |
|
163 | |||
164 | config_files = List(Unicode) |
|
164 | config_files = List(Unicode()) | |
165 | def _config_files_default(self): |
|
165 | def _config_files_default(self): | |
166 | return [self.config_file_name] |
|
166 | return [self.config_file_name] | |
167 |
|
167 |
@@ -36,7 +36,7 b' class DisplayTrap(Configurable):' | |||||
36 | (no callbacks or formatters) until more of the core is refactored. |
|
36 | (no callbacks or formatters) until more of the core is refactored. | |
37 | """ |
|
37 | """ | |
38 |
|
38 | |||
39 | hook = Any |
|
39 | hook = Any() | |
40 |
|
40 | |||
41 | def __init__(self, hook=None): |
|
41 | def __init__(self, hook=None): | |
42 | super(DisplayTrap, self).__init__(hook=hook, config=None) |
|
42 | super(DisplayTrap, self).__init__(hook=hook, config=None) |
@@ -70,7 +70,7 b' class DisplayFormatter(Configurable):' | |||||
70 | else: |
|
70 | else: | |
71 | self.active_types = self.format_types |
|
71 | self.active_types = self.format_types | |
72 |
|
72 | |||
73 | active_types = List(Unicode, config=True, |
|
73 | active_types = List(Unicode(), config=True, | |
74 | help="""List of currently active mime-types to display. |
|
74 | help="""List of currently active mime-types to display. | |
75 | You can use this to set a white-list for formats to display. |
|
75 | You can use this to set a white-list for formats to display. | |
76 |
|
76 |
@@ -296,10 +296,10 b' class MagicsManager(Configurable):' | |||||
296 | # A two-level dict, first keyed by magic type, then by magic function, and |
|
296 | # A two-level dict, first keyed by magic type, then by magic function, and | |
297 | # holding the actual callable object as value. This is the dict used for |
|
297 | # holding the actual callable object as value. This is the dict used for | |
298 | # magic function dispatch |
|
298 | # magic function dispatch | |
299 | magics = Dict |
|
299 | magics = Dict() | |
300 |
|
300 | |||
301 | # A registry of the original objects that we've been given holding magics. |
|
301 | # A registry of the original objects that we've been given holding magics. | |
302 | registry = Dict |
|
302 | registry = Dict() | |
303 |
|
303 | |||
304 | shell = Instance('IPython.core.interactiveshell.InteractiveShellABC', allow_none=True) |
|
304 | shell = Instance('IPython.core.interactiveshell.InteractiveShellABC', allow_none=True) | |
305 |
|
305 |
@@ -133,7 +133,7 b' class InteractiveShellApp(Configurable):' | |||||
133 | - :meth:`init_extensions` |
|
133 | - :meth:`init_extensions` | |
134 | - :meth:`init_code` |
|
134 | - :meth:`init_code` | |
135 | """ |
|
135 | """ | |
136 | extensions = List(Unicode, config=True, |
|
136 | extensions = List(Unicode(), config=True, | |
137 | help="A list of dotted module names of IPython extensions to load." |
|
137 | help="A list of dotted module names of IPython extensions to load." | |
138 | ) |
|
138 | ) | |
139 | extra_extension = Unicode('', config=True, |
|
139 | extra_extension = Unicode('', config=True, | |
@@ -147,14 +147,14 b' class InteractiveShellApp(Configurable):' | |||||
147 | ) |
|
147 | ) | |
148 |
|
148 | |||
149 | # Extensions that are always loaded (not configurable) |
|
149 | # Extensions that are always loaded (not configurable) | |
150 | default_extensions = List(Unicode, [u'storemagic'], config=False) |
|
150 | default_extensions = List(Unicode(), [u'storemagic'], config=False) | |
151 |
|
151 | |||
152 | hide_initial_ns = Bool(True, config=True, |
|
152 | hide_initial_ns = Bool(True, config=True, | |
153 | help="""Should variables loaded at startup (by startup files, exec_lines, etc.) |
|
153 | help="""Should variables loaded at startup (by startup files, exec_lines, etc.) | |
154 | be hidden from tools like %who?""" |
|
154 | be hidden from tools like %who?""" | |
155 | ) |
|
155 | ) | |
156 |
|
156 | |||
157 | exec_files = List(Unicode, config=True, |
|
157 | exec_files = List(Unicode(), config=True, | |
158 | help="""List of files to run at IPython startup.""" |
|
158 | help="""List of files to run at IPython startup.""" | |
159 | ) |
|
159 | ) | |
160 | exec_PYTHONSTARTUP = Bool(True, config=True, |
|
160 | exec_PYTHONSTARTUP = Bool(True, config=True, | |
@@ -164,7 +164,7 b' class InteractiveShellApp(Configurable):' | |||||
164 | file_to_run = Unicode('', config=True, |
|
164 | file_to_run = Unicode('', config=True, | |
165 | help="""A file to be run""") |
|
165 | help="""A file to be run""") | |
166 |
|
166 | |||
167 | exec_lines = List(Unicode, config=True, |
|
167 | exec_lines = List(Unicode(), config=True, | |
168 | help="""lines of code to run at IPython startup.""" |
|
168 | help="""lines of code to run at IPython startup.""" | |
169 | ) |
|
169 | ) | |
170 | code_to_run = Unicode('', config=True, |
|
170 | code_to_run = Unicode('', config=True, |
General Comments 0
You need to be logged in to leave comments.
Login now