diff --git a/myst_nb/cache.py b/myst_nb/cache.py index f2d5cb66..4326c1c0 100644 --- a/myst_nb/cache.py +++ b/myst_nb/cache.py @@ -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 diff --git a/myst_nb/nb_glue/utils.py b/myst_nb/nb_glue/utils.py index 83e5547a..96c30fbf 100644 --- a/myst_nb/nb_glue/utils.py +++ b/myst_nb/nb_glue/utils.py @@ -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 diff --git a/tests/notebooks/basic_relative.ipynb b/tests/notebooks/basic_relative.ipynb index 96ddd45c..f8eda8a6 100644 --- a/tests/notebooks/basic_relative.ipynb +++ b/tests/notebooks/basic_relative.ipynb @@ -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()" ] }