Fixed "Direct usage of document is deprecated." warning (#1052)

This commit is contained in:
Roman Kehr
2022-12-16 21:28:12 +01:00
committed by GitHub
parent 3c7568c72c
commit e0dda0e547

View File

@@ -209,7 +209,7 @@ Now that we have a way to explore the data using `py-repl` and a way to create t
ice_data = pd.read_csv(open_url(url))
current_selected = []
flavour_elements = document.getElementsByName("flavour")
flavour_elements = js.document.getElementsByName("flavour")
def plot(data):
plt.rcParams["figure.figsize"] = (22,20)