【问题标题】:Jupyter notebook progress bar issue in TensorFlow methodTensorFlow方法中的Jupyter笔记本进度条问题
【发布时间】:2021-10-29 10:58:56
【问题描述】:

使用TFAutoModel.from_pretrained()时返回如下错误

~/opt/anaconda3/envs/contracts/lib/python3.8/site-packages/tqdm/notebook.py in status_printer(_, total, desc, ncols)
    110         # Prepare IPython progress bar
    111         if IProgress is None:  # #187 #451 #558 #872
--> 112             raise ImportError(
    113                 "IProgress not found. Please update jupyter and ipywidgets."
    114                 " See https://ipywidgets.readthedocs.io/en/stable"

ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html

我已经按照这些链接手动安装了 tqdm、IPProgress 和 ipywidgets。无论出于何种原因,这个 TensorFlow 对象方法都无法执行。有什么建议吗?

【问题讨论】:

    标签: python tensorflow jupyter-notebook huggingface-transformers


    【解决方案1】:

    你试过了吗:

    pip install --upgrade jupyter_client
    

    根据这个帖子:https://github.com/jupyter-widgets/ipywidgets/issues/2527,似乎已经解决了很多人的问题。另外,每次尝试新解决方案时不要忘记重新启动 jupyter 内核,以确定实际可行的方法。

    【讨论】:

      猜你喜欢
      • 2023-01-15
      • 2022-11-16
      • 2018-07-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-08
      相关资源
      最近更新 更多