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

tqdm_notebook is not working in CDSW Notebook

Hi,

 

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/__init__.py 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)
     20 
     21 

/home/cdsw/.local/lib/python3.6/site-packages/tqdm/_tqdm_notebook.py 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.total, self.desc)
    177         self.desc = None  # trick to place description before the bar
    178 

/home/cdsw/.local/lib/python3.6/site-packages/tqdm/_tqdm_notebook.py 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.. 

 

Best,

Vitali 

Highlighted
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.

Announcements