-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
tqdm_notebook fails with IPython 3 #187
Comments
I'll check it out, thank you for reporting the bug. About the import of ipywidgets, it's normal, it's because all imports are aliased to ipywidgets to uniformize the lines of codes importing the widgets after. |
Aliasing does not appear to apply to imports in either Python version: $ python
Python 2.7.11 (default, Mar 31 2016, 20:46:51)
[GCC 5.3.1 20151207 (Red Hat 5.3.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lxml as lx
>>> from lx import etree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named lx
>>> import lxml.etree
$ python3
Python 3.4.3 (default, Mar 31 2016, 20:42:37)
[GCC 5.3.1 20151207 (Red Hat 5.3.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lxml as lx
>>> from lx import etree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'lx'
>>> import lxml.etree |
that's interesting. Nobody reported issues when I added this. grrr... |
@casperdcl oops sorry no, mea culpa. I tried with IPython v4 (which works because there's no aliasing), but I didn't try with other versions as I was convinced import aliasing would work in Python. |
merged in #190 - though python needs to make up its mind about warnings... |
@philipsd6 I received a notification that you commented here but I can't seem to find your comment. Did you delete it? |
Yup, I was being dumb, so I erased the evidence. |
Oh, ok, great! Feel free @philipsd6 and @QuLogic to 👍 this comment! |
Ah good, because I was already looking on how to fix the issue XD |
Just for reference, I have a notebook that creates Jupyter kernels by setting up a new virtualenv, installing ipykernel, and creating the kernel file. All I was missing was to also install ipywidgets in the venv. See? Dumb. ;) |
@philipsd6 The error message when |
The error seems to still be there with iPython5! |
I certainly get this error still Software Version |
The short answer is to install ipywidgets |
I'm having the same issue. Installing ipywidgets didn't fix it, unfortunately. |
I'm having the same issue.In my windows desktop,it works well.However,when I run the same code on Ubuntu,it breaks down. |
I've installed ipywidgets too and it not working yet. Obs: I'm running on ubuntu. Thanks! |
I tried this and got it to work for me, not sure if this will help anyone else or not. jupyter-widgets/ipywidgets#541
Using (irrelevant packages omitted): |
@andrewzwicky Thanks a lot!It really helps. |
Not really sure if this helped or not, but after dozens of attempts, I ran both "install" and "enable". It worked afterwards. One should think the enable performed install, but the output of the two commands was at least different. (Do note that this wasn't exactly a scientific experiment, as I probably had changed dozens of parameters of the system by that time..!) Anyway: |
I'm still having the same issue when running on Google Colab. |
@rodrigoruiz ipywidget is not supported by Google Colab. googlecolab/colabtools#60 |
I did this to make it work:
The last command is likely to kill your running kernel. If you are training or just trained a large model, I'd suggest you save it to disk before running the last command so you can recover from where you left. |
Running something simple like:
produces this traceback:
using 4.7.4-a581bbd.
The conditional imports seem a bit confused about versions. The comments in the first block say
ipywidgets
is IPython 4.x, andIPython.html.widgets
is 3.x/2.x, but the second block always imports fromipywidgets
.The text was updated successfully, but these errors were encountered: