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
AttributeError #233
Comments
Hi, To help solve this, it'd be useful to know:
|
Hi Pascal, I installed it using conda. Also, grep is not a recognized as a command, so using just pip list, it shows ipywidgets (6.0.1). Jaime |
Hmm -- this version of gmaps is only compatible with ipywidgets 7.x. The conda recipe should have automatically updated your version of ipywidgets, though. Any thoughts on why that didn't happen? I just tested it locally and it upgraded ipywidgets. Anyway, to solve your issue, I'd just run |
Hi Pascal, |
What platform are you using? Version 7.2.0 should be available on all platforms, according to conda-forge, so just running |
Closing as unlikely to be an issue with this package directly. Feel free to reopen. |
Thanks Pascal, you give good advices to solve this. I am going a try them shortly. |
I am getting the same error when using it a google datalab machine. Any idea?
|
Based on this message, it does look like you do have the correct version of ipywidgets in the environment in which pip is listed, but the wrong environment available to the kernel. What does restarting the kernel and running the following show? import gmaps
import ipywidgets as widgets
gmaps.__version__, widgets.__version__ |
it fails with the same error
|
Sorry after restarting it seems to print something out but still not really working
|
Ah -- those are correct.
What is not working now? Are you seeing an exception? If not, what does your browser console show? Note that, if you installed jupyter-gmaps with pip, you also need to run the following command to activate the notebook extension part of gmaps:
See installing with pip for more information on installation. |
OK, I missed that step. Having done that the map still doesn't show and there are a pile of errors in the console.
|
You need to refresh the browser page after you've enabled the extension -- Jupyter only loads extensions on page load. If that doesn't help, what does |
Yes, I tried refreshing a few times to be honest.. Will check the list command |
Hi @asalvadore,
jupyter extensions list is:
shows Note: I also tried manually removing
Then, I installed ipywidgets and gmaps using
So, this seems good but the errors persist. After resetting the kernel, refreshing the page (and also re-starting the server) my error log is:
|
@pbugnion : On refreshing the page, I see logs for loading the js-widgets extensions (like
|
It looks like enabling the extensions for the --user makes it work. Starting from scratch, I now execute the following commands in a new datalab instance:
which gets me:
now I see these logs |
Thanks very much for the detailed report -- that's super useful. I believe the general consensus in the Jupyter community is that the Not really sure what went wrong with your installation, but I'm a bit worried that you now have two versions of both I'll have a play with datalab over the weekend and try to come up with suitable installation instructions. |
Just a noite: running Datalab with version 0.7.4 worked for me |
Hi,
I followed install instructions but always got this same error:
AttributeError: module 'ipywidgets.widgets.trait_types' has no attribute 'InstanceDict'
How can I fix it?
Thanks in advance, Jaime
The text was updated successfully, but these errors were encountered: