Skip to content

Commit adb5dda

Browse files
committed
Add front-end to installation logic
1 parent ba4b36e commit adb5dda

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dyalog_kernel/__main__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1+
import sys
12
from ipykernel.kernelapp import IPKernelApp
23
from . import DyalogKernel
4+
from .install import install_kernel_spec
35

4-
IPKernelApp.launch_instance(kernel_class=DyalogKernel)
6+
def main():
7+
if len(sys.argv) > 1 and sys.argv[1] == 'install':
8+
install_kernel_spec()
9+
else:
10+
IPKernelApp.launch_instance(kernel_class=DyalogKernel)
11+
12+
if __name__ == '__main__':
13+
main()

0 commit comments

Comments
 (0)