标签: dash-bootstrap-components

dash_bootstrap_components 安装成功但无法识别

我的仪表板工作正常。我已经安装了 dash_bootstrap_components 来为我的仪表板提供样式。

我写了pip install dash-bootstrap-components并且完美安装。

但是当我运行该应用程序时,出现此错误:

import dash_bootstrap_components as dbc
Run Code Online (Sandbox Code Playgroud)

ModuleNotFoundError: 没有名为“dash_bootstrap_components”的模块

我有:dash-1.8.0 dash-bootstrap-components-0.8.2

python plotly-dash dash-bootstrap-components

2
推荐指数
1
解决办法
4856
查看次数

如何在 Dash-Plotly (Dash-Bootstrap-Components) 中折叠侧边栏

我正在使用以下代码Dash Plotly使用Dash-Bootstrap-Components库时创建一个简单的侧边栏。我的目标是通过重用上面的代码来实现collapsed sidebar如下面的gif所示。

我不是专家JavaScriptJQueryCSS或其他工具,让我做这件事。我感谢任何帮助我实现我的目标。

提前致谢。

python plotly-dash dash-bootstrap-components

2
推荐指数
1
解决办法
6658
查看次数