Giter Club home page Giter Club logo

Comments (3)

perrygeo avatar perrygeo commented on July 17, 2024

What specific problems are users having installing jenks? I'd anticipate two main issues:

  1. they don't have git installed
  2. 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:

from mapboxgl-jupyter.

ryanbaumann avatar ryanbaumann commented on July 17, 2024

@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.

ryanbaumann avatar ryanbaumann commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.