Skip to content

Commit 201bc07

Browse files
committed
Merge branch 'master' into example
2 parents b5f5766 + 0fad2c3 commit 201bc07

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ cache:
88
python:
99
- 3.6
1010

11-
sudo: required
12-
13-
1411
env:
1512
global:
1613
- PATH=$TRAVIS_BUILD_DIR/pandoc:$PATH
@@ -64,7 +61,8 @@ matrix:
6461
env: GROUP=python
6562
- python: 3.7
6663
env: GROUP=python
67-
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
64+
- python: 3.8
65+
env: GROUP=python
6866
- python: 3.6
6967
env: GROUP=docs
7068

jupyter_server/serverapp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,7 +1675,7 @@ def _write_browser_open_file(self, url, fh):
16751675

16761676
jinja2_env = self.web_app.settings['jinja2_env']
16771677
template = jinja2_env.get_template('browser-open.html')
1678-
fh.write(template.render(open_url=url))
1678+
fh.write(template.render(open_url=url, base_url=self.base_url))
16791679

16801680
def remove_browser_open_file(self):
16811681
"""Remove the nbserver-<pid>-open.html file created for this server.
@@ -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)