Install Plotly
Ensure you have Python 3.8+ installed. Use pip or conda:
pip install plotly
# For Jupyter support:
pip install "jupyterlab>=4.0" anywidget
Or conda:
conda install -c conda-forge plotly jupyterlab anywidget
Launch JupyterLab
Create first plot in a notebook cell:
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig.show()
This opens an interactive bar chart in your browser.