Skip to content

Commit 6eb877e

Browse files
committed
replace hyphen with underscore in the extension_name to define the default config file name
1 parent c63805a commit 6eb877e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter_server/extension/application.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ def _default_extension_name(self):
110110

111111
def _config_file_name_default(self):
112112
"""The default config file name."""
113-
return 'jupyter_{}_config'.format(self.extension_name)
113+
if not self.name:
114+
return ''
115+
return 'jupyter_{}_config'.format(self.extension_name.replace('-','_'))
114116

115117
def _validate_extension_name(self):
116118
value = self.extension_name

0 commit comments

Comments
 (0)