mirror of
https://github.com/andreinechaev/nvcc4jupyter.git
synced 2026-06-13 18:50:47 +05:30
Move load_ipython_extension function to plugin.py
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
|
||||||
Reference in New Issue
Block a user