mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Add _ from module to fix the not imported error
This commit is contained in:
parent
cd49eee41f
commit
dd451c1861
@ -31,6 +31,7 @@ from traitlets import (
|
|||||||
)
|
)
|
||||||
from ipython_genutils.py3compat import string_types
|
from ipython_genutils.py3compat import string_types
|
||||||
from notebook.base.handlers import IPythonHandler
|
from notebook.base.handlers import IPythonHandler
|
||||||
|
from notebook.transutils import _
|
||||||
|
|
||||||
|
|
||||||
copy_pat = re.compile(r'\-Copy\d*\.')
|
copy_pat = re.compile(r'\-Copy\d*\.')
|
||||||
@ -70,7 +71,7 @@ class ContentsManager(LoggingConfigurable):
|
|||||||
Glob patterns to hide in file and directory listings.
|
Glob patterns to hide in file and directory listings.
|
||||||
""")
|
""")
|
||||||
|
|
||||||
untitled_notebook = Unicode("Untitled", config=True,
|
untitled_notebook = Unicode(_("Untitled"), config=True,
|
||||||
help="The base name used when creating untitled notebooks."
|
help="The base name used when creating untitled notebooks."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user