Skip to content

Commit

Permalink
TST: testing plotly
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Feb 21, 2024
1 parent 0249ac8 commit 6431a99
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions lectures/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ parts:
numbered: true
chapters:
- file: about
- file: plotly
- caption: Economic Data
numbered: true
chapters:
Expand Down
25 changes: 25 additions & 0 deletions lectures/plotly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
jupytext:
text_representation:
extension: .md
format_name: myst
kernelspec:
display_name: Python 3
language: python
name: python3
---

# Plotly Example

```{code-cell} ipython3
!pip install plotly
```

An example plot

```{code-cell}
# 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()
```

0 comments on commit 6431a99

Please sign in to comment.