From 9f939fb515b0484648c39d9a9d4182d315009f02 Mon Sep 17 00:00:00 2001 From: Cameron DeCoster Date: Thu, 8 Oct 2026 15:51:32 -0600 Subject: [PATCH] docs: Update quickstart in README --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4964f7bfcb..e6e8efb53b 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,24 @@ ## Quickstart -`pip install plotly` +### Graph Objects + +``` +pip install plotly +``` + +```python +import plotly.graph_objects as go +fig = go.Figure() +fig.add_trace(go.Bar(x=["a", "b", "c"], y=[1, 3, 2])) +fig.show() +``` + +### Plotly Express + +``` +pip install plotly[express] +``` ```python import plotly.express as px @@ -47,6 +64,8 @@ fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2]) fig.show() ``` +You'll also need to install a [supported dataframe library](https://plotly.com/python/px-arguments/#supported-dataframe-types). + See the [Python documentation](https://plotly.com/python/) for more examples. ## Overview @@ -135,4 +154,3 @@ Code and documentation copyright 2026 Plotly, Inc. Code released under the [MIT license](https://github.com/plotly/plotly.py/blob/main/LICENSE.txt). Docs released under the [Creative Commons license](https://creativecommons.org/licenses/by/4.0/). -