How to install plotly python with pip

Spread the love

In this post, you will learn how to install plotly with pip.

Install plotly –

To install plotly type

pip install plotly

JupyterLab Support –

To use plotly in jupyterlab, install jupyterlab and ipywidget package using pip

pip install "jupyterlab>=3" "ipywidgets>=7.6"

You’ll need jupyter-dash to add widgets such as sliders, dropdowns, and buttons to Plotly charts in JupyterLab

pip install jupyter-dash

To start a jupyterLab type the following command

jupyter lab

Jupyter Notebook Support –

If you want to use plotly in classic jupyter notebook, then install jupyter notebook and ipywidgets using pip

 pip install "notebook>=5.3" "ipywidgets>=7.5"

To start a jupyter notebook type the following command in command line or Terminal

jupyter notebook

Static Image Export –

To export static image in plotly you need kaleido package.

Kaleido –

pip install -U kaleido 

Extended Geo Support –

Some plotly.py features rely on fairly large geographic shape files. The county choropleth figure factory is one such example. These shape files are distributed as a separate plotly-geo package. This package can be installed using pip

pip install plotly-geo==1.0.0 

Chart studio support –

The chart-studio package can be used to upload plotly figures to Plotly’s Chart Studio Cloud or On-Prem services. This package can be installed using pip

pip install chart-studio==1.1.0

1 . How to create a Line Chart with Plotly Python

2 . How to create Scatter plot in Plotly Python

3 . How to create a Bar Chart in Plotly Python

4 . How to create Horizontal Bar Chart in Plotly Python

5 . How to create a Histogram in plotly python

6 . How to Create a Box Plot in Plotly Python

7 . How to create a Pie Chart in Plotly Python

8 . How to create a Dot Plot in Plotly Python

9 . How to Create Heatmap with Plotly Python

10 . How to Create a Violin Plot in Plotly Python

11 . How to Create Subplots in Plotly Python

Leave a Reply