New Contributor
Posts: 2
Registered: ‎01-26-2018

tqdm_notebook is not working in CDSW Notebook



when I try to use the python package tqdm for progressbar visualisation it does not work! Does anybody have a solution?


/home/cdsw/.local/lib/python3.6/site-packages/tqdm/ in tqdm_notebook(*args, **kwargs)
     17     """See tqdm._tqdm_notebook.tqdm_notebook for full documentation"""
     18     from ._tqdm_notebook import tqdm_notebook as _tqdm_notebook
---> 19     return _tqdm_notebook(*args, **kwargs)

/home/cdsw/.local/lib/python3.6/site-packages/tqdm/ in __init__(self, *args, **kwargs)
    174         # self.sp('', close=True)
    175         # Replace with IPython progress bar display (with correct total)
--> 176         self.sp = self.status_printer(self.fp,, self.desc)
    177         self.desc = None  # trick to place description before the bar

/home/cdsw/.local/lib/python3.6/site-packages/tqdm/ in status_printer(_, total, desc)
     96             pbar = IntProgress(min=0, max=total)
     97         else:  # No total? Show info style bar with no progress tqdm status
---> 98             pbar = IntProgress(min=0, max=1)
     99             pbar.value = 1
    100             pbar.bar_style = 'info'

NameError: name 'IntProgress' is not defined


tqdm has a "notebook version" method called tqdm_notebook but it throws this error:

I would guess this a problem caused by the CDSW notebook.. 




Cloudera Employee
Posts: 481
Registered: ‎08-11-2014

Re: tqdm_notebook is not working in CDSW Notebook

It looks like you didn't install some package that your notebook requires.