Repository: ipython/ipykernel

Issue:
Typo in install_kernelspec causes to break
#57 causes 

`The command "python -m ipykernel.kernelspec --user" failed and exited with 1 during .`

as reported in https://travis-ci.org/jupyter/nbconvert/jobs/81479990.

Working on a fix + test now. 

Discussion:

Patch:
diff --git a/ipykernel/kernelspec.py b/ipykernel/kernelspec.py
index 1d8541f..0203a87 100644
--- a/ipykernel/kernelspec.py
+++ b/ipykernel/kernelspec.py
@@ -153,7 +153,7 @@ class InstallIPythonKernelSpecApp(Application):
         opts = parser.parse_args(self.argv)
         try:
             dest = install(user=opts.user, kernel_name=opts.name, prefix=opts.prefix,
-                dispay_name=opts.display_name,
+                display_name=opts.display_name,
             )
         except OSError as e:
             if e.errno == errno.EACCES:


Test patch:
diff --git a/ipykernel/tests/test_kernelspec.py b/ipykernel/tests/test_kernelspec.py
index 409802c..c849436 100644
--- a/ipykernel/tests/test_kernelspec.py
+++ b/ipykernel/tests/test_kernelspec.py
@@ -7,7 +7,7 @@ import os
 import shutil
 import sys
 import tempfile
-
+    
 try:
     from unittest import mock
 except ImportError:
@@ -20,6 +20,7 @@ from ipykernel.kernelspec import (
     get_kernel_dict,
     write_kernel_spec,
     install,
+    InstallIPythonKernelSpecApp,
     KERNEL_NAME,
     RESOURCES,
 )
@@ -75,6 +76,17 @@ def test_write_kernel_spec_path():
     shutil.rmtree(path)
 
 
+def test_install_kernelspec():
+
+    path = tempfile.mkdtemp()
+    try: 
+        test = InstallIPythonKernelSpecApp.launch_instance(argv=['--prefix', path])
+        assert_is_spec(os.path.join(
+            path, 'share', 'jupyter', 'kernels', KERNEL_NAME))
+    finally:
+        shutil.rmtree(path)
+
+
 def test_install_user():
     tmp = tempfile.mkdtemp()