python - tqdm.notebook 在 jupyter notebook 中显示带有 "H

这是我在 jupyter notebook 中运行的代码:

from tqdm.notebook import tqdm

for i in tqdm(range(0, 100000)):
     continue 

我收到的不是进度条,而是以下消息:

HBox(children=(FloatProgress(value=0.0, max=100000.0), HTML(value='')))

如果我改用 from tqdm import tqdm,它确实可以正常工作。

最佳答案

您需要安装 ipywidgets jlab 扩展 https://ipywidgets.readthedocs.io/en/stable/user_install.html#installing-the-jupyterlab-extension

关于python - tqdm.notebook 在 jupyter notebook 中显示带有 "HBox"而不是进度条的消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62440322/

相关文章:

mysql - 使用 MySQL 计算值之间的差异 (PV)

c# - Json 列 SQL

javascript - 为什么字符串中的等号会抛出意外的标记错误?

flutter - 在 Flutter 应用程序中从 pubspec for web 获取版本

matlab - 使用鼠标右键删除选择表中的行 - Matlab 2020a

react-native - 在通过深度链接导航到特定路线导航时 React Native。goBa

c# - 尽管已添加到我的项目中但无法使用 Bootstrap

visual-studio-code - VScode 中的 vim 仿真扩展导致问题

python - 查找列表中的值是否大于其下方的项目

azure-functions - Azure Functions、Servicebus 和 Cor