Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
phaustin committed Jun 18, 2020
1 parent f920bd8 commit a0c65e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion myst_nb/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _read_nb_output_cells(source_path, jupyter_execute_notebooks):
and jupyter_execute_notebooks == "auto"
and "ipynb" in ext
):
with open(source_path, "r", enconding="utf8") as f:
with open(source_path, "r", encoding="utf8") as f:
ntbk = nbf.read(f, as_version=4)
has_outputs = all(
len(cell.outputs) != 0
Expand Down
2 changes: 1 addition & 1 deletion myst_nb/nb_glue/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def read_glue_cache(path):
if not path.exists():
raise FileNotFoundError(f"A glue cache was not found at: {path}")

data = json.load(path.open(enconding="utf8"))
data = json.load(path.open(encoding="utf8"))
return data


Expand Down
2 changes: 1 addition & 1 deletion tests/notebooks/basic_relative.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"outputs": [],
"source": [
"# Test reading a relative file to make sure relative paths work\n",
"with open(\"./conf.py\",encoding="utf-8") as ff:\n",
"with open(\"./conf.py\") as ff:\n",
" ff.read()"
]
}
Expand Down

0 comments on commit a0c65e2

Please sign in to comment.