Comments (12)
Agree on #13, we're planning to a) clearly document color options, and b) add default values for color ramps so a user can just pass mapboxgl.viz.CircleViz(data=data, access_token=token)
and get a valid viz result.
Thanks for the doc collaboration offer - yes, we'd love to collaborate here! @perrygeo and I will set up the doc generation set up in a new PR, and then we can collab on creating the content. If you have any examples you'd like to share in the meantime, please open a PR.
from mapboxgl-jupyter.
does utilities include the contents of the color_ramps dictionary? for those not inclined to read source code, this a bit cryptic currently, especially until #13 is resolved.
what do you have in mind RE: documentation framework? I'm keen to collaborate here and have a small team that could help test.
from mapboxgl-jupyter.
Additional Documentation specifics
- Differences between
color_stops
across APIs. What are the individual APIs expecting, and how do these tie back to Mapbox Style-spec requirements. Specifically for Heatmaps, there could be additional explanation as to how these values are interpreted and rendered.
Example:
Heatmap requires a color stop that looks like this: heatmap_color_stops = mapboxgl.colors.create_color_stops([0.01,0.25,0.5,0.75,1], colors='RdPu')
Clustered looks like this: color_stops = mapboxgl.colors.create_color_stops([1,10,50,100], colors='RdPu')
Points utilize a standard set of stops from create_color_stops
but it appears that Heatmap and Clustered are looking for values across a specific range. If this is the case, it should be documented.
from mapboxgl-jupyter.
Let's push on documentation this month. The goal would be to enable a 1.0 release by the end of February. @perrygeo any recommendations on a Python documentation system to use to publish website docs?
from mapboxgl-jupyter.
Sphinx is the gold standard: http://www.sphinx-doc.org/en/stable/
Configuration is a little tricky and it uses RestructuredText instead of markdown - but it's flexible with very nice HTML output.
from mapboxgl-jupyter.
Thanks @perrygeo. Let's break out several doc tasks:
- Setup Sphinx framework
- Publish to readthedocs.org (https://mapboxgl-jupyter.readthedocs.io/en/latest/mapboxgl.html)
- Generate viz docs for parent viz objects (style, access_token, etc)
- Generate viz docs copy for each specific viz type (circle, graduated circle, heatmap, clustered circle, and choropleth)
from mapboxgl-jupyter.
Sphix docs are setup. Need to format the docs and create the copy now. New merges will automatically publish to readthedocs.org at
https://mapboxgl-jupyter.readthedocs.io/en/latest/mapboxgl.html
from mapboxgl-jupyter.
@markmisener is moving on a markdown version of the docs here to host on Github - #46
from mapboxgl-jupyter.
Does this mean veering away from readthedocs site? Or will we port over the markdown files once all of the copy is written?
from mapboxgl-jupyter.
@narlesky yes. Apologies if we're crossing streams here.
We're planning to use markdown documentation for the initial launch, and delay the readthedocs / Sphinx docs implementation until a later release.
from mapboxgl-jupyter.
👍
from mapboxgl-jupyter.
The markdown version of the docs are live! https://github.com/mapbox/mapboxgl-jupyter/tree/master/docs-markdown
Let's continue to use the markdown docs moving forward.
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.