Skip to content

Commit d08256a

Browse files
committed
add notes about interactive plots on website
1 parent f174864 commit d08256a

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

lectures/black_litterman.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,10 @@ customer's portfolio will involve big short-long positions.
382382

383383
```{note}
384384
To Generate an Interactive Plot you can use the ipywidget
385-
decorator `interact`.
385+
decorator `interact`. Interactive plotting requires the [ipywidgets](https://github.com/jupyter-widgets/ipywidgets) module to be installed and enabled.
386386
387-
This doesn't currently display on the website. Working
388-
to support rich content such as ipywidgets as HTML javascript objects.
387+
The following `code-cell` doesn't currently display on the website. We are working
388+
to support rich content such as `ipywidgets` as HTML javascript objects.
389389
390390
https://github.com/QuantEcon/lecture-python-advanced.myst/issues/28
391391
@@ -616,6 +616,15 @@ $\bar d_2$ on the RHS of the constraint, by varying
616616
$\bar d_2$ (or $\lambda$ ), we can trace out the whole curve
617617
as the figure below illustrates.
618618

619+
```{note}
620+
The following `code-cell` doesn't currently display on the website. We are working
621+
to support rich content such as `ipywidgets` as HTML javascript objects.
622+
623+
https://github.com/QuantEcon/lecture-python-advanced.myst/issues/28
624+
625+
However you can use the [binder link](https://mybinder.org/v2/gh/QuantEcon/lecture-python-advanced.notebooks/master?urlpath=tree/black_litterman.ipynb) to launch this notebook on mybinder
626+
```
627+
619628
```{code-cell} python3
620629
:tags: ["remove-output"]
621630
np.random.seed(1987102)
@@ -702,6 +711,15 @@ This leads to the
702711
following figure, on which the curve connecting $\hat \mu$
703712
and $\mu_{BL}$ are bending
704713

714+
```{note}
715+
The following `code-cell` doesn't currently display on the website. We are working
716+
to support rich content such as `ipywidgets` as HTML javascript objects.
717+
718+
https://github.com/QuantEcon/lecture-python-advanced.myst/issues/28
719+
720+
However you can use the [binder link](https://mybinder.org/v2/gh/QuantEcon/lecture-python-advanced.notebooks/master?urlpath=tree/black_litterman.ipynb) to launch this notebook on mybinder
721+
```
722+
705723
```{code-cell} python3
706724
:tags: ["remove-output"]
707725
λ_grid = np.linspace(.001, 20000, 1000)

lectures/matsuyama.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -787,9 +787,7 @@ plt.show()
787787

788788
Additionally, instead of just seeing 4 plots at once, we might want to
789789
manually be able to change $\rho$ and see how it affects the plot
790-
in real-time. Below we use an interactive plot to do this.
791-
792-
Note, interactive plotting requires the [ipywidgets](https://github.com/jupyter-widgets/ipywidgets) module to be installed and enabled.
790+
in real-time. Below we will turn the following figure into an interactive plot.
793791

794792
```{code-cell} python3
795793
#Setup Parameters
@@ -815,14 +813,14 @@ plt.show()
815813

816814
```{note}
817815
To Generate an Interactive Plot you can use the ipywidget
818-
decorator `interact`.
816+
decorator `interact`. Interactive plotting requires the [ipywidgets](https://github.com/jupyter-widgets/ipywidgets) module to be installed and enabled.
819817
820-
This doesn't currently display on the website. Working
818+
This doesn't currently display on the website. We are working
821819
to support rich content such as ipywidgets as HTML javascript objects.
822820
823821
https://github.com/QuantEcon/lecture-python-advanced.myst/issues/28
824822
825-
However you can use the [binder link](https://mybinder.org/v2/gh/QuantEcon/lecture-python-advanced.notebooks/master?urlpath=tree/matsuyama.ipynb) to launch this notebook on mybinder
823+
However you can use the [binder link](https://mybinder.org/v2/gh/QuantEcon/lecture-python-advanced.notebooks/master?urlpath=tree/matsuyama.ipynb) to launch this notebook on mybinder.
826824
```
827825

828826
```{code-cell} python3

0 commit comments

Comments
 (0)