Skip to content

Commit

Permalink
only workable solution
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Feb 21, 2024
1 parent 08c77c9 commit f694171
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lectures/plotly.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,13 @@ kernelspec:

An example plot

(plotlyfig)=
```{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()
```


```{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 f694171

Please sign in to comment.