Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
TST: testing plotly
  • Loading branch information
mmcky committed Feb 21, 2024
commit 6431a992edf407b4037e60de81d34fff064d1f4f
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()
```