From c93c6924f6e97b7bbb9ab04fdebe29c15531e6aa Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 1 Oct 2015 10:33:23 +0200 Subject: [PATCH] allow hyphen and dot in kernelspec names --- notebook/services/kernelspecs/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/services/kernelspecs/handlers.py b/notebook/services/kernelspecs/handlers.py index bef4aff15..279731f54 100644 --- a/notebook/services/kernelspecs/handlers.py +++ b/notebook/services/kernelspecs/handlers.py @@ -79,7 +79,7 @@ class KernelSpecHandler(APIHandler): # URL to handler mappings -kernel_name_regex = r"(?P\w+)" +kernel_name_regex = r"(?P[\w\.\-]+)" default_handlers = [ (r"/api/kernelspecs", MainKernelSpecHandler),