How to Check the Plotly Dash Version in Python?

How to Check the Plotly Dash Version in the Terminal or Shell (Unix/macOS/Linux/Windows?

To check the dash version in your Windows, Unix, macOS, or Linux environment, you can run the command pip list in your terminal or shell and locate the dash output with version information in the format x.y.z (e.g., 2.5.1)

Here’s an example where you run pip list in your shell:

pip list

Example Output:

...
dash                          2.5.1
dash-core-components          2.0.0
dash-html-components          2.0.0
dash-table                    5.0.0
dask                          2.12.0
datascience                   0.10.6
...

In this example, I’ve figured out that this environment has dash version 2.5.1 installed.

πŸ’‘ Note: If there is no output line for dash, it means that Plotly Dash is not installed in your environment.

How to Check the Plotly Dash Version in a Python Script?

To check your Plotly Dash version in your Python script, first import the dash library with import dash and then print(dash.__version__). The output is the current version of your Plotly Dash installation in the format x.y.z (e.g., 2.5.1).

import dash
print(dash.__version__)
# 2.5.1

πŸ“– Further Learning: For a complete guide on how to build your beautiful dashboard app in pure Python, check out our best-selling book Python Dash with San Francisco Based publisher NoStarch.

How to Check Your Plotly Dash Version in a Jupyter Notebook?

To check your Plotly Dash version in a Jupyter notebook (e.g., Google Colab), you can import the dash library with import dash and then print(dash.__version__) right in your script. The output is the current version of your Plotly Dash installation in the format x.y.z (e.g., 2.5.1).

Here’s an example:

import dash
print(dash.__version__)
# 2.5.1

Here’s our interactive tool to try it again in Google Colab:

How to Update Your Version of Dash to the Latest Version?

You can upgrade your Plotly Dash version by running the command pip install dash --upgrade in your terminal or shell or virtual environment.

pip install dash --upgrade

If you face any installation problems, check out this tutorial on the Finxter blog.


If you’re interested in learning more about how to create beautiful dashboard applications in Python, check out our new book Python Dash.

You’ve seen dashboards before; think election result visualizations you can update in real-time, or population maps you can filter by demographic.

With the Python Dash library, you’ll create analytic dashboards that present data in effective, usable, elegant ways in just a few lines of code.

Get the book on NoStarch or Amazon!