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.
1 parent 931e411 commit 8fecf22Copy full SHA for 8fecf22
execnb/nbio.py
@@ -91,6 +91,6 @@ def write_nb(nb, path):
91
"Write `nb` to `path`"
92
new = nb2str(nb)
93
path = Path(path)
94
- old = Path(path).read_text() if path.exists() else None
+ old = Path(path).read_text(encoding="utf-8") if path.exists() else None
95
if new!=old:
96
with open(path, 'w', encoding='utf-8') as f: f.write(new)
0 commit comments