Skip to content

Commit

Permalink
Check for None in case we are dealing with an externally launched kernel
Browse files Browse the repository at this point in the history
Fix #863.
  • Loading branch information
hrdl-github authored and hrdl committed Nov 15, 2023
1 parent 4f28d1b commit 20229d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtconsole/qtconsoleapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20229d6

Please sign in to comment.