mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
single warning message for bad startup notebook
This commit is contained in:
parent
24174f31d9
commit
bf58dddf26
@ -739,8 +739,11 @@ class NotebookApp(BaseIPythonApplication):
|
||||
if f.startswith(nbdir):
|
||||
f = f[len(nbdir):]
|
||||
else:
|
||||
self.log.warn("Probably won't be able to open notebook %s", f)
|
||||
self.log.warn("Because it is not in notebook_dir %s", nbdir)
|
||||
self.log.warn(
|
||||
"Probably won't be able to open notebook %s "
|
||||
"because it is not in notebook_dir %s",
|
||||
f, nbdir,
|
||||
)
|
||||
|
||||
if os.path.isfile(self.file_to_run):
|
||||
url = url_path_join('notebooks', f)
|
||||
|
Loading…
Reference in New Issue
Block a user