Skip to content

Commit

Permalink
alternative short-term solution
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Feb 21, 2024
1 parent 2a93d4f commit 08c77c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lectures/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ sphinx:
['latex', 'text/markdown', 50],
['latex', 'text/plain', 60],
['latex', 'text/html', 70],
['latex', 'application/vnd.plotly.v1+json', 80],
['latex', 'application/vnd.jupyter.widget-view+json', 90],
# Link Checker
['linkcheck', 'text/plain', 10],
]
Expand Down
11 changes: 9 additions & 2 deletions lectures/plotly.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@ kernelspec:
An example plot

```{code-cell} ipython3
---
mystnb:
figure:
caption: "A Plotly Scatter Plot"
name: plotlyfig
---
# x and y given as array_like objects
import plotly.express as px
fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
fig.show()
```

```{code-cell} ipython3

```
```{only} latex
This figure is interactive you may [click here to see this figure on the website](https://intro.quantecon.org/plotly.html#plotlyfig)
```

0 comments on commit 08c77c9

Please sign in to comment.