mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
allow hyphen and dot in kernelspec names
This commit is contained in:
parent
a9d5474943
commit
c93c6924f6
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user