diff --git a/qtconsole/qtconsoleapp.py b/qtconsole/qtconsoleapp.py index cee348d6..b93a9077 100644 --- a/qtconsole/qtconsoleapp.py +++ b/qtconsole/qtconsoleapp.py @@ -191,7 +191,7 @@ def new_frontend_master(self): # start the kernel kwargs = {} # FIXME: remove special treatment of IPython kernels - if self.kernel_manager.ipykernel: + if self.kernel_manager and self.kernel_manager.ipykernel: kwargs['extra_arguments'] = self.kernel_argv kernel_manager.start_kernel(**kwargs) kernel_manager.client_factory = self.kernel_client_class