Skip to content
Snippets Groups Projects
Commit aec91f99 authored by Florian Bruhin's avatar Florian Bruhin
Browse files

Set notebook encoding explicitely

Otherwise certain notebooks (e.g. 441c646 in hs23) do not decode on Windows. See https://github.com/jupyter/nbformat/issues/181
parent 327afb3d
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class NotebookView(QWebEngineView):
if key in self._html_cache:
return self._html_cache[key]
with path.open("r") as f:
with path.open("r", encoding="utf-8") as f:
nb = nbformat.read(f, as_version=nbformat.NO_CONVERT)
exporter = nbconvert.HTMLExporter()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment