We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc459d0 + f8d7d40 commit cf3622cCopy full SHA for cf3622c
notebook/notebookapp.py
@@ -1739,7 +1739,7 @@ def launch_browser(self):
1739
1740
# Write a temporary file to open in the browser
1741
fd, open_file = tempfile.mkstemp(suffix='.html')
1742
- with open(fd, 'w', encoding='utf-8') as fh:
+ with io.open(fd, 'w', encoding='utf-8') as fh:
1743
self._write_browser_open_file(uri, fh)
1744
else:
1745
open_file = self.browser_open_file
0 commit comments