question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jupyter and Ipywidgets up to date, yet ImportError: IntProgress not found. Please update jupyter and ipywidgets.

See original GitHub issue

Hello,

I have been getting this error when trying to use Tpot library in a jupyter notebook.

tpot.TPOTClassifier.fit(x_train, y_train)


Warning: xgboost.XGBClassifier is not available and will not be used by TPOT.
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/usr/local/lib/python3.7/site-packages/tqdm/_tqdm_notebook.py in status_printer(_, total, desc, ncols)
    102             if total:
--> 103                 pbar = IntProgress(min=0, max=total)
    104             else:  # No total? Show info style bar with no progress tqdm status

NameError: name 'IntProgress' is not defined

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
<ipython-input-7-c5de40c7b1e7> in <module>
----> 1 tp.fit(x_train, y_train)

/usr/local/lib/python3.7/site-packages/tpot/base.py in fit(self, features, target, sample_weight, groups)
    733 
    734         self._pbar = tqdm(total=total_evals, unit='pipeline', leave=False,
--> 735                           disable=not (self.verbosity >= 2), desc='Optimization Progress')
    736 
    737         try:

/usr/local/lib/python3.7/site-packages/tqdm/_tqdm_notebook.py in __init__(self, *args, **kwargs)
    210         # Replace with IPython progress bar display (with correct total)
    211         self.sp = self.status_printer(
--> 212             self.fp, self.total, self.desc, self.ncols)
    213         self.desc = None  # trick to place description before the bar
    214 

/usr/local/lib/python3.7/site-packages/tqdm/_tqdm_notebook.py in status_printer(_, total, desc, ncols)
    109             # #187 #451 #558
    110             raise ImportError(
--> 111                 "IntProgress not found. Please update jupyter and ipywidgets."
    112                 " See https://ipywidgets.readthedocs.io/en/stable"
    113                 "/user_install.html")

ImportError: IntProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html

I have followed the ipywidgets installation instructions (https://ipywidgets.readthedocs.io/en/stable/user_install.html), updated conda, but despite all the effort this problem still remains.

The jupyter version:

jupyter core     : 4.5.0
jupyter-notebook : 6.0.0
qtconsole        : 4.5.2
ipython          : 7.6.1
ipykernel        : 5.1.1
jupyter client   : 5.3.1
jupyter lab      : 1.0.4
nbconvert        : 5.5.0
ipywidgets       : 7.5.1
nbformat         : 4.4.0
traitlets        : 4.3.2

Thank you in advance for any suggestions how to get around this!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
eeegnucommented, Jan 24, 2020

ImportError: IntProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html

Hi! Thanks for commenting! This is exactly why I was raising the issue in the first place. Check my jupyter version against the current changelogs. All seems to be up to date. Even though I can import the IntProgress, it still returns the error…

Have you been able to resolve this issue? 😃

I face the exact same problem.

pip install --upgrade jupyter_client resolved this problem for me.

7reactions
jasongroutcommented, Aug 5, 2019

And you can double-check that ipywidgets is working fine by trying to import that yourself:

from ipywidgets import IntProgress
Read more comments on GitHub >

github_iconTop Results From Across the Web

IProgress not found. Please update jupyter and ipywidgets ...
Run jupyter notebook in the console to turn on the notebooks server and create a new notebook. Run this line in a new...
Read more >
FloatProgress not found. Please update jupyter and ipywidgets
I am getting this error in UNet learner after changing resnet34 arch by xresnet34.
Read more >
IProgress not found. Please update jupyter and ipywidgets ...
I am using tqdm() module in my code and am getting the following error: for mu, s in tqdm( ... has no attribute...
Read more >
Python – Tqdm 4.28.1 in Jupyter Notebook “IntProgress not found ...
import tqdm for i in tqdm.tqdm_notebook(range(2, int(total_number)//20):i. ERROR: IntProgress not found. Please update jupyter and ipywidgets. ImportError: ...
Read more >
IProgress not found. Please update jupyter and ipywidgets ...
Answer a question I am using jupyter notebook and installed ipywidgets==7.4.2 widgetsnbextension pandas-profiling=='.0.0 and also I ran: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found