allow hyphen and dot in kernelspec names

This commit is contained in:
Min RK 2015-10-01 10:33:23 +02:00
parent a9d5474943
commit c93c6924f6

View File

@ -79,7 +79,7 @@ class KernelSpecHandler(APIHandler):
# URL to handler mappings # URL to handler mappings
kernel_name_regex = r"(?P<kernel_name>\w+)" kernel_name_regex = r"(?P<kernel_name>[\w\.\-]+)"
default_handlers = [ default_handlers = [
(r"/api/kernelspecs", MainKernelSpecHandler), (r"/api/kernelspecs", MainKernelSpecHandler),