Move load_ipython_extension function to plugin.py

This commit is contained in:
Cosmin Ciocan
2024-01-02 11:19:53 +01:00
parent 99e45d93b2
commit d3e68f53e0
2 changed files with 5 additions and 8 deletions
+5
View File
@@ -301,3 +301,8 @@ class NVCCPlugin(Magics):
return return
self._delete_group(args.group) self._delete_group(args.group)
def load_ipython_extension(shell: InteractiveShell):
nvcc_plugin = NVCCPlugin(shell)
shell.register_magics(nvcc_plugin)
-8
View File
@@ -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)