Comments (1)
Hey @WillMcCall! I'm not a maintainer or anything, but I happened on this and think I can maybe help.
your immediate problem
Firstly, it looks like your example code is similar to the examples in this part of the tutorial. There it looks like the function name you want is symbol_layer
, instead of symbol
.
other problems
However, when I tried to run your code with ^my fix, I got another error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-09538d5bc6cd> in <cell line: 8>()
6
7 fig = gmaps.figure()
----> 8 marker_layer = gmaps.symbol_layer(
9 locations, fill_color="purple", stroke_color="purple",scale=5
10 )
2 frames
[...]
/usr/local/lib/python3.10/dist-packages/gmaps/options.py in is_atomic(elem)
38 return (
39 isinstance(elem, string_types) or
---> 40 not isinstance(elem, collections.Iterable)
41 )
42
AttributeError: module 'collections' has no attribute 'Iterable'
This looks like gmaps
is misusing Python's builtin collections
module. Specifically, Iterable
used to be in collections
but was moved to collections.abc
way back in Python version ~3.3?, which has been in EOF for over a decade.
Looking further into it, the setup.py file here seems to suggest that this package supports Python version up to 3.6.
On top of that, this repo seems to not have seen any changes since 2019.
tl;dr: this gmaps package may be abandoned and out-of-date. If you want to use it, you unfortunately may have to do some maintenance yourself.
my recommendations
In general, I'd recommend asking these kinds of usage questions on Stack Overflow, instead of as an issue in the repo. You have a better chance of getting a decent answer (there are always SO users, but maintainers may disappear), and worst-case they'll tell you to message the package maintainers anyway.
Good luck with your efforts!
from gmaps.
Related Issues (20)
- fig.add_layer is not working HOT 1
- extension enabled but no yaml file to tell us how to configure it
- externals in webpack.config.js causes jupyterlab widgets to fail
- Gmaps not working in python. HOT 1
- Support new JupyterLab 3.0 python based packaging HOT 1
- Cannot display map in JupyterLab HOT 1
- Directions layer not showing via `embed_minimal_html` HOT 1
- API change for collections in Python 3.3+ breaks is_atomic in options.py HOT 5
- AttributeError: module 'collections' has no attribute 'Iterable' HOT 1
- How to export a dynamic map to png without having to use a browser?
- jupyter nbextension enable --py gmaps doesn't work
- Possible bug in gmaps or ipywidgets.embed.embed_minimal_html
- Trouble when installing
- jupyter-gmaps loaded but cannot be instantiated HOT 7
- nose seems to be dead
- Cannot Install gmaps on Linux using Miniconda
- access raw traffic data
- No version of module jupyter-gmaps is registered HOT 1
- The gmaps package on Voila got an error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmaps.