13

When I use the tqdm_notebook in iteration:

from tqdm import tqdm_notebook as tqdm

It only shows:

HBox(children=(IntProgress(value=1, bar_style='info', max=1), HTML(value='')))

How can I do?

Tamara Koliada
  • 1,200
  • 2
  • 14
  • 31
Kay Zhou
  • 139
  • 1
  • 6

2 Answers2

11

Probably you don't have ipywidgets installed.

For Jupyter Notebook you can check with $ jupyter nbextension list

For Jupyter Lab you can check with $ jupyter labextension list

Installing ipywidgets is described here

akode
  • 156
  • 5
  • 8
    The install page isn't super clear. For jupyter lab, run `jupyter labextension install @jupyter-widgets/jupyterlab-manager` – muudscope May 24 '19 at 20:42
2

For use in JupyterLab:

  1. install ipywidgets package:

    With pip

    pip install ipywidgets

    jupyter nbextension enable --py widgetsnbextension

    With conda

    conda install -c conda-forge ipywidgets

    (Installing ipywidgets with conda will also enable the extension for you.)

  2. Then run the following command to install the Jupyter widgets extension for FigureWidget support (note that this will require nodeJs to be installed in your system):

jupyter labextension install @jupyter-widgets/jupyterlab-manager

laifi
  • 86
  • 5