diff --git a/scripts/make_tutorials.py b/scripts/make_tutorials.py index 5f3cd95b411..c2990316b54 100644 --- a/scripts/make_tutorials.py +++ b/scripts/make_tutorials.py @@ -156,8 +156,9 @@ def gen_tutorials( # pull out html div for notebook soup = BeautifulSoup(html, "html.parser") - nb_meat = soup.find("div", {"class": "jp-Notebook"}) - nb_meat.attrs["class"].append(["notebook"]) + nb_meat = soup.find("div", {"id": "notebook-container"}) + del nb_meat.attrs["id"] + nb_meat.attrs["class"] = ["notebook"] # when output html, iframe it (useful for Ax reports) for html_div in nb_meat.findAll("div", {"class": "output_html"}): diff --git a/setup.py b/setup.py index dd883ca8f81..a221352e68e 100644 --- a/setup.py +++ b/setup.py @@ -23,6 +23,7 @@ "sphinx<3.0.0", "sphinx-autodoc-typehints", "torchvision>=0.5.0", + "nbconvert<=5.6.1", ] MYSQL_REQUIRES = ["SQLAlchemy>=1.1.13"]