Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
smacke committed Feb 11, 2025
1 parent 1e1c4bf commit 1ca33b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ipykernel/ipkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from .comm.comm import BaseComm
from .comm.manager import CommManager
from .compiler import XCachingCompiler
from .debugger import Debugger, _is_debugpy_available
from .eventloops import _use_appnope
from .iostream import OutStream
from .kernelbase import Kernel as KernelBase
Expand Down Expand Up @@ -72,7 +71,9 @@ class IPythonKernel(KernelBase):
shell = Instance("IPython.core.interactiveshell.InteractiveShellABC", allow_none=True)
shell_class = Type(ZMQInteractiveShell)

debugger_class = Type(Debugger)
# use fully-qualified name to ensure lazy import and prevent the issue from
# https://github.com/ipython/ipykernel/issues/1198
debugger_class = Type("ipykernel.debugger.Debugger")

use_experimental_completions = Bool(
True,
Expand Down Expand Up @@ -113,6 +114,8 @@ def __init__(self, **kwargs):

self.executing_blocking_code_in_main_shell = False

from .debugger import _is_debugpy_available

# Initialize the Debugger
if _is_debugpy_available:
self.debugger = self.debugger_class(
Expand Down

0 comments on commit 1ca33b8

Please sign in to comment.