From 4482725f9ca4989a18d199fd5d14136d6e8bae09 Mon Sep 17 00:00:00 2001 From: Matthew Michilot Date: Tue, 9 Jul 2024 20:33:33 -0700 Subject: [PATCH] Remove CocotbMagics --- src/cocotb_kernel/module.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cocotb_kernel/module.py b/src/cocotb_kernel/module.py index efde113..6618e75 100644 --- a/src/cocotb_kernel/module.py +++ b/src/cocotb_kernel/module.py @@ -10,8 +10,6 @@ from ipykernel.kernelapp import IPKernelApp from IPython.core.interactiveshell import ExecutionResult -from cocotb_kernel.magics import CocotbMagics # type: ignore - class CocotbKernelApp(IPKernelApp): # Patch init_signal because the kernel is ran in a separate thread @@ -50,7 +48,6 @@ def interrupt_kernel(_signal: int, _frame: FrameType | None) -> None: def start_kernel() -> None: app.initialize(["-f", connection_file]) # type: ignore app.shell.loop_runner = cocotb_loop_runner # type: ignore - app.shell.register_magics(CocotbMagics) # type: ignore app.start() # type: ignore cocotb.log.info("starting ipykernel")