Comments (3)
What specific problems are users having installing jenks? I'd anticipate two main issues:
- they don't have
git
installed - they don't have a compiler toolchain to build C extension modules
Publishing an official release of the jenks
module to pypi will solve (1) - Just pip install jenks
. Honestly something I should do anyways. I'd much prefer to do this than fork the code and bundle it with an unrelated repo.
But (2) will still be an issue - the jenks module is implemented in Cython for speed reasons and needs a C compiler to work. This will typically affect Windows users more severly as the compiler toolchain is relatively easy to install on OSX and Linux. A few options to solve this
- Build binary wheels for every target platform and python version
- Rewrite the module setup to fall back onto a (slow but working) pure python implementation in the absence of a compiler.
- Rely on another third party classification library that has these issues solved:
- PySAL has a very robust module for handling classification with Jenks and other methods: https://pysal.readthedocs.io/en/latest/library/esda/mapclassify.html
- There is a jenkspy module on pypi which is implemented in C but distributes windows wheels with each release. https://pypi.python.org/pypi/jenkspy
from mapboxgl-jupyter.
@perrygeo I think relying on a third party classification lib makes sense here - jenks is just the beginning of classifications users may want to use to calculate a domain of breaks.
PySAL seems like a great option.
from mapboxgl-jupyter.
Let's keep data transformation outside of the scope of this library, and instead build examples using PySAL for how to prepare data to use with mapboxgl
.
I updated the current example notebook to use pySAL to calculate natural breaks. Here's the code, and the live example at www.mapbox.com/labs/jupyter
from mapboxgl-jupyter.
Related Issues (20)
- Mapbox Jupyter doesn't render ChoroplethViz HOT 7
- New feature to edit colour legends title
- TemplateNotFound in conda environment HOT 7
- Coverage/Coveralls hangs indefinitely HOT 1
- Examples don't work as shown, due to Jupyter "Blocking request with no referer" HOT 5
- Support MapboxGL 'step' expression for color and height function types HOT 5
- Is there a way to hide the "token = os.getenv('MAPBOX_ACCESS_TOKEN')" HOT 5
- Will Mapbox add support for JupyterLab? HOT 6
- Please add interactive callback events to this widget.
- Adding search for map HOT 1
- Heat Map in time HOT 3
- Subplot support HOT 4
- How to hide the legends for GraduatedCircleViz? HOT 1
- Example displays base map but not points HOT 2
- any chance multiple viz can be combined in a single view? HOT 1
- viz.create_html() rounds lat/lng to 4 decimal places which drops accuracy to 11m
- How to hide null/Nan values on a CircleViz ? HOT 3
- Uncaught Error: An API access token is required to use Mapbox GL.
- Mapboxgl cannot be imported on Windows 10 after conda install
- mapbox doesn't render points on jupyter notebook running on Databricks. HOT 1
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 mapboxgl-jupyter.