Skip to content

Commit 2964b9f

Browse files
fix: launch browser was using old notebook_dir
1 parent 4e6d9a0 commit 2964b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/serverapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ def launch_browser(self):
17031703
self.log.critical(_("%s does not exist") % self.file_to_run)
17041704
self.exit(1)
17051705

1706-
relpath = os.path.relpath(self.file_to_run, self.notebook_dir)
1706+
relpath = os.path.relpath(self.file_to_run, self.root_dir)
17071707
uri = url_escape(url_path_join('notebooks', *relpath.split(os.sep)))
17081708

17091709
# Write a temporary file to open in the browser

0 commit comments

Comments
 (0)