Skip to content

Commit 752ef5c

Browse files
committed
add utf8 comment
1 parent 1fc21bc commit 752ef5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter_sphinx/execute.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ def write_notebook_output(notebook, output_dir, notebook_name):
256256
resources,
257257
os.path.join(output_dir, notebook_name + ".ipynb"),
258258
)
259-
# Write a script too.
259+
# Write a script too. Note that utf-8 is the de facto
260+
# standard encoding for notebooks.
260261
ext = notebook.metadata.language_info.file_extension
261262
contents = "\n\n".join(cell.source for cell in notebook.cells)
262263
with open(os.path.join(output_dir, notebook_name + ext), "w",

0 commit comments

Comments
 (0)