×

注意!页面内容来自https://dash.plotly.com/installation,本站不储存任何内容,为了更好的阅读体验进行在线解析,若有广告出现,请及时反馈。若您觉得侵犯了您的利益,请通知我们进行删除,然后访问 原网页

Dash Installation

Prerequisite: dash requires Python v3.8 or later

In your terminalinstall dash.

pip install dash

If you are not using Dash Enterprisewe recommend installing dash along with the Plotly Cloud extension. Using the extensionyou can publish an app running on your workstation directly to Plotly Cloud from the app. Install dash with the Plotly Cloud extension:

pip install "dash[cloud]"

Upgrading Dash

These docs are running dash version 4.1.0.
You can check your version of dash with:

pip show dash

And upgrade with:

pip install dash --upgrade

Plotly Graphing Library

When you install dashPlotly’s graphing libraryplotly is also installed. plotly.expressthe high-level entrypoint to the plotly graphing libraryrequires a supported dataframe library to be installed. We recommend installing Pandas to follow along with examples in the documentation.

pip install pandas

For details on support for other dataframe libraries in plotly.expresssee Supported DataFrame Types.

Ready? Nowlet’s see an example of a minimal Dash app