From d3e68f53e07324600e8f0aea5f8babffb382cf9b Mon Sep 17 00:00:00 2001 From: Cosmin Ciocan Date: Tue, 2 Jan 2024 11:19:53 +0100 Subject: [PATCH] Move load_ipython_extension function to plugin.py --- nvcc4jupyter/plugin.py | 5 +++++ nvcc_plugin.py | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) delete mode 100644 nvcc_plugin.py diff --git a/nvcc4jupyter/plugin.py b/nvcc4jupyter/plugin.py index f5b77d4..e278d56 100644 --- a/nvcc4jupyter/plugin.py +++ b/nvcc4jupyter/plugin.py @@ -301,3 +301,8 @@ class NVCCPlugin(Magics): return self._delete_group(args.group) + + +def load_ipython_extension(shell: InteractiveShell): + nvcc_plugin = NVCCPlugin(shell) + shell.register_magics(nvcc_plugin) diff --git a/nvcc_plugin.py b/nvcc_plugin.py deleted file mode 100644 index c5afcfe..0000000 --- a/nvcc_plugin.py +++ /dev/null @@ -1,8 +0,0 @@ -from IPython.core.interactiveshell import InteractiveShell - -from v1.v1 import NVCCPlugin as NVCC_V1 - - -def load_ipython_extension(shell: InteractiveShell): - nvcc_plugin = NVCC_V1(shell) - shell.register_magics(nvcc_plugin)