Skip to content

Commit 9f939fb

Browse files
committed
docs: Update quickstart in README
1 parent d586d22 commit 9f939fb

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,33 @@
3939

4040
## Quickstart
4141

42-
`pip install plotly`
42+
### Graph Objects
43+
44+
```
45+
pip install plotly
46+
```
47+
48+
```python
49+
import plotly.graph_objects as go
50+
fig = go.Figure()
51+
fig.add_trace(go.Bar(x=["a", "b", "c"], y=[1, 3, 2]))
52+
fig.show()
53+
```
54+
55+
### Plotly Express
56+
57+
```
58+
pip install plotly[express]
59+
```
4360

4461
```python
4562
import plotly.express as px
4663
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
4764
fig.show()
4865
```
4966

67+
You'll also need to install a [supported dataframe library](https://plotly.com/python/px-arguments/#supported-dataframe-types).
68+
5069
See the [Python documentation](https://plotly.com/python/) for more examples.
5170

5271
## Overview
@@ -135,4 +154,3 @@ Code and documentation copyright 2026 Plotly, Inc.
135154
Code released under the [MIT license](https://github.com/plotly/plotly.py/blob/main/LICENSE.txt).
136155

137156
Docs released under the [Creative Commons license](https://creativecommons.org/licenses/by/4.0/).
138-

0 commit comments

Comments
 (0)