File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2323from .comm .comm import BaseComm
2424from .comm .manager import CommManager
2525from .compiler import XCachingCompiler
26+ from .debugger import Debugger , _is_debugpy_available
2627from .eventloops import _use_appnope
2728from .iostream import OutStream
2829from .kernelbase import Kernel as KernelBase
@@ -71,6 +72,8 @@ class IPythonKernel(KernelBase):
7172 shell = Instance ("IPython.core.interactiveshell.InteractiveShellABC" , allow_none = True )
7273 shell_class = Type (ZMQInteractiveShell )
7374
75+ debugger_class = Type (Debugger )
76+
7477 use_experimental_completions = Bool (
7578 True ,
7679 help = "Set this flag to False to deactivate the use of experimental IPython completion APIs." ,
@@ -110,11 +113,9 @@ def __init__(self, **kwargs):
110113
111114 self .executing_blocking_code_in_main_shell = False
112115
113- from .debugger import Debugger , _is_debugpy_available
114-
115116 # Initialize the Debugger
116117 if _is_debugpy_available :
117- self .debugger = Debugger (
118+ self .debugger = self . debugger_class (
118119 self .log ,
119120 self .debugpy_socket ,
120121 self ._publish_debug_event ,
You can’t perform that action at this time.
0 commit comments