From 967d2c3eb983847ca616b5a265ffdfb6a0784b8e Mon Sep 17 00:00:00 2001 From: kp992 Date: Sun, 24 Nov 2024 18:41:32 -0800 Subject: [PATCH] Add import --- lectures/matsuyama.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lectures/matsuyama.md b/lectures/matsuyama.md index fc0b6d47..c464db57 100644 --- a/lectures/matsuyama.md +++ b/lectures/matsuyama.md @@ -44,6 +44,7 @@ Let's start with some imports: import numpy as np import matplotlib.pyplot as plt from numba import jit +from ipywidgets import interact ``` ### Background @@ -797,7 +798,7 @@ This interactive plot is disabled on this static webpage. In order to use this, we recommend to run this notebook locally. ``` -```{code-cell} python3 +```{code-cell} ipython3 :class: no-execute def interact_attraction_basis(ρ=0.2, maxiter=250, npts=250): @@ -816,7 +817,7 @@ def interact_attraction_basis(ρ=0.2, maxiter=250, npts=250): return None ``` -```{code-cell} python3 +```{code-cell} ipython3 :class: no-execute fig = interact(interact_attraction_basis,