Skip to content

Commit

Permalink
add plotly install for preview
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Mar 8, 2024
1 parent d16e570 commit 9e5c1b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lectures/inequality.md
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,10 @@ plot_data.reset_index(inplace=True)
plot_data.year = plot_data.year.map(lambda x: int(x.replace('YR','')))
```
```{code-cell} ipython3
!pip install plotly
```
```{code-cell} ipython3
import plotly.express as px
fig = px.line(plot_data, x="gini", y="gdppc", color="country", text="year", height=800)
Expand Down

0 comments on commit 9e5c1b7

Please sign in to comment.