Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurred when used bunny in jupyter notebook #2

Closed
huyhoang17 opened this issue Mar 22, 2019 · 1 comment
Closed

Error occurred when used bunny in jupyter notebook #2

huyhoang17 opened this issue Mar 22, 2019 · 1 comment

Comments

@huyhoang17
Copy link

huyhoang17 commented Mar 22, 2019

for _ in bunny(range(10)):
    sleep(0.1)
  0%|          | 0/10 [00:00<?, ?it/s]
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-92-b5d041156ee6> in <module>
----> 1 for _ in bunny(range(10)):
      2     sleep(0.1)

~/.../lib/python3.5/site-packages/bunny/bunny.py in __iter__(self)
     86 """, fp_write=getattr(self.fp, 'write', sys.stderr.write))
     87 
---> 88             tqdm.write("\r" + " " * self.ncols + "\n" * 8)  # make space for bunny
     89 
     90             for obj in iterable:

TypeError: can't multiply sequence by non-int of type 'NoneType'
@bheinzerling
Copy link
Owner

Looks like self.ncols is None. Does this error still occur if you execute all cells in the notebook in the correct order from top to bottom?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants