Show More
@@ -213,7 +213,9 class BaseIPythonApplication(Application): | |||||
213 | return d |
|
213 | return d | |
214 |
|
214 | |||
215 | _in_init_profile_dir = False |
|
215 | _in_init_profile_dir = False | |
|
216 | ||||
216 | profile_dir = Instance(ProfileDir, allow_none=True) |
|
217 | profile_dir = Instance(ProfileDir, allow_none=True) | |
|
218 | ||||
217 | @default('profile_dir') |
|
219 | @default('profile_dir') | |
218 | def _profile_dir_default(self): |
|
220 | def _profile_dir_default(self): | |
219 | # avoid recursion |
|
221 | # avoid recursion | |
@@ -226,11 +228,13 class BaseIPythonApplication(Application): | |||||
226 | overwrite = Bool(False, |
|
228 | overwrite = Bool(False, | |
227 | help="""Whether to overwrite existing config files when copying""" |
|
229 | help="""Whether to overwrite existing config files when copying""" | |
228 | ).tag(config=True) |
|
230 | ).tag(config=True) | |
|
231 | ||||
229 | auto_create = Bool(False, |
|
232 | auto_create = Bool(False, | |
230 | help="""Whether to create profile dir if it doesn't exist""" |
|
233 | help="""Whether to create profile dir if it doesn't exist""" | |
231 | ).tag(config=True) |
|
234 | ).tag(config=True) | |
232 |
|
235 | |||
233 | config_files = List(Unicode()) |
|
236 | config_files = List(Unicode()) | |
|
237 | ||||
234 | @default('config_files') |
|
238 | @default('config_files') | |
235 | def _config_files_default(self): |
|
239 | def _config_files_default(self): | |
236 | return [self.config_file_name] |
|
240 | return [self.config_file_name] |
@@ -209,7 +209,7 class ProfileCreate(BaseIPythonApplication): | |||||
209 | name = u'ipython-profile' |
|
209 | name = u'ipython-profile' | |
210 | description = create_help |
|
210 | description = create_help | |
211 | examples = _create_examples |
|
211 | examples = _create_examples | |
212 | auto_create = Bool(True) |
|
212 | auto_create = Bool(True).tag(config=True) | |
213 | def _log_format_default(self): |
|
213 | def _log_format_default(self): | |
214 | return "[%(name)s] %(message)s" |
|
214 | return "[%(name)s] %(message)s" | |
215 |
|
215 |
@@ -177,7 +177,7 class LocateIPythonApp(BaseIPythonApplication): | |||||
177 |
|
177 | |||
178 |
|
178 | |||
179 | class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp): |
|
179 | class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp): | |
180 |
name = |
|
180 | name = "ipython" | |
181 | description = usage.cl_usage |
|
181 | description = usage.cl_usage | |
182 | crash_handler_class = IPAppCrashHandler # typing: ignore[assignment] |
|
182 | crash_handler_class = IPAppCrashHandler # typing: ignore[assignment] | |
183 | examples = _examples |
|
183 | examples = _examples | |
@@ -224,9 +224,9 class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp): | |||||
224 | ), |
|
224 | ), | |
225 | ) |
|
225 | ) | |
226 |
|
226 | |||
227 |
|
||||
228 | # *do* autocreate requested profile, but don't create the config file. |
|
227 | # *do* autocreate requested profile, but don't create the config file. | |
229 | auto_create=Bool(True) |
|
228 | auto_create = Bool(True).tag(config=True) | |
|
229 | ||||
230 | # configurables |
|
230 | # configurables | |
231 | quick = Bool(False, |
|
231 | quick = Bool(False, | |
232 | help="""Start IPython quickly by skipping the loading of config files.""" |
|
232 | help="""Start IPython quickly by skipping the loading of config files.""" |
General Comments 0
You need to be logged in to leave comments.
Login now