Kay Zhou
Kay Zhou

Reputation: 139

could not use tqdm_notebook in notebook

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?

Upvotes: 13

Views: 9964

Answers (2)

laifi
laifi

Reputation: 96

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

Upvotes: 3

akode
akode

Reputation: 156

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

Upvotes: 11

Related Questions