Show More
@@ -213,7 +213,9 b' class BaseIPythonApplication(Application):' | |||
|
213 | 213 | return d |
|
214 | 214 | |
|
215 | 215 | _in_init_profile_dir = False |
|
216 | ||
|
216 | 217 | profile_dir = Instance(ProfileDir, allow_none=True) |
|
218 | ||
|
217 | 219 | @default('profile_dir') |
|
218 | 220 | def _profile_dir_default(self): |
|
219 | 221 | # avoid recursion |
@@ -226,11 +228,13 b' class BaseIPythonApplication(Application):' | |||
|
226 | 228 | overwrite = Bool(False, |
|
227 | 229 | help="""Whether to overwrite existing config files when copying""" |
|
228 | 230 | ).tag(config=True) |
|
231 | ||
|
229 | 232 | auto_create = Bool(False, |
|
230 | 233 | help="""Whether to create profile dir if it doesn't exist""" |
|
231 | 234 | ).tag(config=True) |
|
232 | 235 | |
|
233 | 236 | config_files = List(Unicode()) |
|
237 | ||
|
234 | 238 | @default('config_files') |
|
235 | 239 | def _config_files_default(self): |
|
236 | 240 | return [self.config_file_name] |
@@ -209,7 +209,7 b' class ProfileCreate(BaseIPythonApplication):' | |||
|
209 | 209 | name = u'ipython-profile' |
|
210 | 210 | description = create_help |
|
211 | 211 | examples = _create_examples |
|
212 | auto_create = Bool(True) | |
|
212 | auto_create = Bool(True).tag(config=True) | |
|
213 | 213 | def _log_format_default(self): |
|
214 | 214 | return "[%(name)s] %(message)s" |
|
215 | 215 |
@@ -177,7 +177,7 b' class LocateIPythonApp(BaseIPythonApplication):' | |||
|
177 | 177 | |
|
178 | 178 | |
|
179 | 179 | class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp): |
|
180 |
name = |
|
|
180 | name = "ipython" | |
|
181 | 181 | description = usage.cl_usage |
|
182 | 182 | crash_handler_class = IPAppCrashHandler # typing: ignore[assignment] |
|
183 | 183 | examples = _examples |
@@ -196,7 +196,7 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):' | |||
|
196 | 196 | def _classes_default(self): |
|
197 | 197 | """This has to be in a method, for TerminalIPythonApp to be available.""" |
|
198 | 198 | return [ |
|
199 | InteractiveShellApp, # ShellApp comes before TerminalApp, because | |
|
199 | InteractiveShellApp, # ShellApp comes before TerminalApp, because | |
|
200 | 200 | self.__class__, # it will also affect subclasses (e.g. QtConsole) |
|
201 | 201 | TerminalInteractiveShell, |
|
202 | 202 | HistoryManager, |
@@ -224,9 +224,9 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):' | |||
|
224 | 224 | ), |
|
225 | 225 | ) |
|
226 | 226 | |
|
227 | ||
|
228 | 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 | 230 | # configurables |
|
231 | 231 | quick = Bool(False, |
|
232 | 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