##// END OF EJS Templates
Expose --kernel arg for selecting kernel on console and qtconsole
Thomas Kluyver -
Show More
@@ -98,6 +98,7 app_aliases = dict(
98 98 existing = 'IPythonConsoleApp.existing',
99 99 f = 'IPythonConsoleApp.connection_file',
100 100
101 kernel = 'IPythonConsoleApp.kernel_name',
101 102
102 103 ssh = 'IPythonConsoleApp.sshserver',
103 104 )
@@ -174,6 +175,9 class IPythonConsoleApp(ConnectionFileMixin):
174 175 existing = CUnicode('', config=True,
175 176 help="""Connect to an already running kernel""")
176 177
178 kernel_name = Unicode('native', config=True,
179 help="""The name of the default kernel to start.""")
180
177 181 confirm_exit = CBool(True, config=True,
178 182 help="""
179 183 Set to display confirmation dialog on exit. You can always use 'exit' or 'quit',
@@ -335,6 +339,7 class IPythonConsoleApp(ConnectionFileMixin):
335 339 stdin_port=self.stdin_port,
336 340 hb_port=self.hb_port,
337 341 connection_file=self.connection_file,
342 kernel_name=self.kernel_name,
338 343 parent=self,
339 344 )
340 345 self.kernel_manager.client_factory = self.kernel_client_class
General Comments 0
You need to be logged in to leave comments. Login now