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