Skip to content

Commit 50d8c2b

Browse files
committed
encoding
1 parent e0a6c65 commit 50d8c2b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

execnb/_modidx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Autogenerated by nbprocess
1+
# Autogenerated by nbdev
22

33
d = { 'settings': { 'audience': 'Developers',
44
'author': 'Jeremy Howard',

execnb/nbio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def dict2nb(js):
4343
# %% ../nbs/01_nbio.ipynb 19
4444
def read_nb(path):
4545
"Return notebook at `path`"
46-
res = dict2nb(Path(path).read_json())
46+
res = dict2nb(Path(path).read_json(encoding='utf-8'))
4747
res['path_'] = str(path)
4848
return res
4949

nbs/01_nbio.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
{
251251
"data": {
252252
"text/plain": [
253-
"([<ast.Expr at 0x10f5174c0>], <ast.Add at 0x10ccc8340>)"
253+
"([<ast.Expr at 0x107d476a0>], <ast.Add at 0x105235ee0>)"
254254
]
255255
},
256256
"execution_count": null,
@@ -271,7 +271,7 @@
271271
"#|export\n",
272272
"def read_nb(path):\n",
273273
" \"Return notebook at `path`\"\n",
274-
" res = dict2nb(Path(path).read_json())\n",
274+
" res = dict2nb(Path(path).read_json(encoding='utf-8'))\n",
275275
" res['path_'] = str(path)\n",
276276
" return res"
277277
]

0 commit comments

Comments
 (0)