Skip to content

Commit

Permalink
make compiler class configurable too
Browse files Browse the repository at this point in the history
  • Loading branch information
smacke committed Dec 15, 2024
1 parent b18b069 commit 090522d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ipykernel/ipkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ class IPythonKernel(KernelBase):
# 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")

compiler_class = Type(XCachingCompiler)

use_experimental_completions = Bool(
True,
Expand Down Expand Up @@ -134,7 +136,7 @@ def __init__(self, **kwargs):
user_module=self.user_module,
user_ns=self.user_ns,
kernel=self,
compiler_class=XCachingCompiler,
compiler_class=self.compiler_class,
)
self.shell.displayhook.session = self.session # type:ignore[attr-defined]

Expand Down

0 comments on commit 090522d

Please sign in to comment.