Show More
@@ -715,14 +715,15 b' class NotebookApp(BaseIPythonApplication):' | |||
|
715 | 715 | |
|
716 | 716 | nbdir = os.path.abspath(self.notebook_manager.notebook_dir) |
|
717 | 717 | f = self.file_to_run |
|
718 | if f and f.startswith(nbdir): | |
|
719 |
f |
|
|
720 | else: | |
|
721 |
|
|
|
722 | "Probably won't be able to open notebook %s " | |
|
723 |
" |
|
|
724 | f, nbdir, | |
|
725 |
|
|
|
718 | if f: | |
|
719 | if f.startswith(nbdir): | |
|
720 | f = f[len(nbdir):] | |
|
721 | else: | |
|
722 | self.log.warn( | |
|
723 | "Probably won't be able to open notebook %s " | |
|
724 | "because it is not in notebook_dir %s", | |
|
725 | f, nbdir, | |
|
726 | ) | |
|
726 | 727 | |
|
727 | 728 | if os.path.isfile(self.file_to_run): |
|
728 | 729 | url = url_path_join('notebooks', f) |
General Comments 0
You need to be logged in to leave comments.
Login now