##// END OF EJS Templates
add qtconsole as subapp of terminal ipapp...
MinRK -
Show More
@@ -206,9 +206,16 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):'
206 206 # command_line_loader = IPAppConfigLoader
207 207 default_config_file_name = default_config_file_name
208 208 crash_handler_class = IPAppCrashHandler
209
209 210 flags = Dict(flags)
210 211 aliases = Dict(aliases)
211 212 classes = [InteractiveShellApp, TerminalInteractiveShell, ProfileDir, PlainTextFormatter]
213 subcommands = Dict(dict(
214 qtconsole=('IPython.frontend.qt.console.ipythonqt.IPythonQtConsoleApp',
215 """Launch the IPython QtConsole. Also launched as ipython-qtconsole"""
216 )
217 ))
218
212 219 # *do* autocreate requested profile
213 220 auto_create=Bool(True)
214 221 copy_config_files=Bool(True)
@@ -259,9 +266,11 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):'
259 266 def initialize(self, argv=None):
260 267 """Do actions after construct, but before starting the app."""
261 268 super(TerminalIPythonApp, self).initialize(argv)
269 if self.subapp is not None:
270 # don't bother initializing further, starting subapp
271 return
262 272 if not self.ignore_old_config:
263 273 check_for_old_config(self.ipython_dir)
264
265 274 # print self.extra_args
266 275 if self.extra_args:
267 276 self.file_to_run = self.extra_args[0]
@@ -322,6 +331,8 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):'
322 331 self.shell.showtraceback()
323 332
324 333 def start(self):
334 if self.subapp is not None:
335 return self.subapp.start()
325 336 # perform any prexec steps:
326 337 if self.interact:
327 338 self.log.debug("Starting IPython's mainloop...")
General Comments 0
You need to be logged in to leave comments. Login now