Skip to content
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

Use Mapbox GL for visualisations in the worked examples #770

Merged
merged 30 commits into from
May 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
af65dfe
Fix worked examples and use GeoViews for plots
jc-harrison May 3, 2019
8ac414a
Merge branch 'master' of github.com:Flowminder/FlowKit into worked-ex…
jc-harrison May 3, 2019
2fcfd3a
Re-lock with updated pipenv
jc-harrison May 3, 2019
372bd94
Cache queries before building docs
jc-harrison May 9, 2019
71fb9ed
Update post-crisis worked example to use mapboxgl
jc-harrison May 9, 2019
5ea656e
Lock Pipfile
jc-harrison May 9, 2019
254cc02
Update all worked examples to use mapbox
jc-harrison May 10, 2019
656a5ac
Execute example notebooks in docs build
jc-harrison May 10, 2019
1943ab2
More pre-caching
jc-harrison May 13, 2019
0db7419
Use all colour stops
jc-harrison May 13, 2019
d7ab1d6
Format flowclient example notebook
jc-harrison May 13, 2019
841c578
Merge branch "master" into "worked-examples-geoviews"
jc-harrison May 13, 2019
6a1e621
Update Pipfile
jc-harrison May 13, 2019
d09092d
Fix preamble script
jc-harrison May 13, 2019
b96c813
Fix Makefile
jc-harrison May 13, 2019
a860724
Fix FlowAuth demodata
jc-harrison May 13, 2019
8049178
Update worked examples Dockerfile
jc-harrison May 13, 2019
32ba652
Get mapbox token using os.environ instead of os.getenv
jc-harrison May 13, 2019
9cdebd0
Add note about requiring a Mapbox API token for the worked examples v…
jc-harrison May 13, 2019
4a883a6
Suppress flowmachine log messages in notebook output
jc-harrison May 13, 2019
d888a08
Set FLOWMACHINE_LOG_LEVEL=error for mkdocs build
jc-harrison May 13, 2019
a8623ef
Fix python_with_flowdb executor in circle config
jc-harrison May 13, 2019
542c775
Update CHANGELOG.md
jc-harrison May 13, 2019
97961c4
Merge branch 'master' of github.com:Flowminder/FlowKit into worked-ex…
jc-harrison May 13, 2019
a010142
Small docs updates
jc-harrison May 14, 2019
aaaf0a6
Update docs/cache_queries.py
jc-harrison May 14, 2019
a1b5d78
Merge branch 'master' into worked-examples-geoviews
May 14, 2019
7c868eb
Use synthetic_data with examples unless user asks for smaller_data
jc-harrison May 14, 2019
71636ae
Merge branch 'master' into worked-examples-geoviews
May 14, 2019
eb51ff1
Merge branch 'master' into worked-examples-geoviews
May 14, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ executors:
default: "2015-01-01"
disaster_end_date:
type: string
default: "2015-01-01"
default: "2015-01-01"
environment:
POSTGRES_PASSWORD: flowflow
MPLBACKEND: "agg"
Expand All @@ -108,8 +108,8 @@ executors:
- image: flowminder/flowdb-<<parameters.flowdb_image>>:$CIRCLE_SHA1
environment:
N_DAYS: <<parameters.num_days>>
DISASTER_START_DATE: <<parameters.disaster_start_date>>
DISASTER_END_DATE: <<parameters.disaster_end_date>>
DISASTER_START: <<parameters.disaster_start_date>>
DISASTER_END: <<parameters.disaster_end_date>>
N_SUBSCRIBERS: <<parameters.num_subscribers>>
N_CELLS: <<parameters.num_cells>>
N_SITES: <<parameters.num_sites>>
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- The Flowmachine loggers are now initialised only once when flowmachine is imported, with a call to `connect()` only changing the log level [#691](https://github.com/Flowminder/FlowKit/issues/691)
- The FERNET_KEY environment variable for FlowAuth is now named FLOWAUTH_FERNET_KEY
- The quick-start script now correctly aborts if one of the FlowKit services doesn't fully start up [#745](https://github.com/Flowminder/flowkit/issues/745)
- The maps in the worked examples docs pages now appear in any browser

### Removed

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN rm -rf /home/$NB_USER/work
COPY docs/source/worked_examples/*.ipynb /home/$NB_USER/
COPY flowmachine /flowmachine
COPY flowclient /flowclient
RUN pip install folium /flowclient /flowmachine && \
RUN pip install geopandas mapboxgl /flowclient /flowmachine && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER && \
cd /home/$NB_USER/ && jupyter trust -y *
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
DOCKER_COMPOSE_FILE ?= docker-compose.yml
DOCKER_COMPOSE_FILE_BUILD ?= docker-compose-build.yml
FLOWDB_SERVICES ?= flowdb_testdata
DOCKER_SERVICES ?= $(FLOWDB_SERVICES) flowapi flowmachine flowauth flowmachine_query_locker flowetl flowetldb worked_examples
DOCKER_SERVICES ?= $(FLOWDB_SERVICES) flowapi flowmachine flowauth flowmachine_query_locker flowetl flowetl_db worked_examples
export DOCKER_FLOWDB_HOST=$(word 1, $(FLOWDB_SERVICES))


Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,11 @@ services:
- FLOWDB_HOST=${DOCKER_FLOWDB_HOST:?Must set DOCKER_FLOWDB_HOST env var}
- FLOWMACHINE_FLOWDB_USER=${FLOWMACHINE_FLOWDB_USER:?Must set FLOWMACHINE_FLOWDB_USER env var}
- FLOWMACHINE_FLOWDB_PASSWORD=${FLOWMACHINE_FLOWDB_PASSWORD:?Must set FLOWMACHINE_FLOWDB_PASSWORD env var}
- REDIS_HOST=query_locker
- REDIS_HOST=flowmachine_query_locker
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD:?Must set REDIS_PASSWORD env var}
- FLOWAPI_URL=http://flowapi:9090
- MAPBOX_ACCESS_TOKEN=$MAPBOX_ACCESS_TOKEN
restart: always
networks:
- db
Expand Down
5 changes: 2 additions & 3 deletions docs/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@ marshmallow-oneofschema = {editable = true,ref = "8195dc3e595fa33a5f007f10ba7cfc
descartes = "*"
flowclient = {editable = true,path = "./../flowclient"}
flowapi = {editable = true,path = "./../flowapi"}
flowkit-jwt-generator = {editable = true,path = "./../flowkit_jwt_generator"}
mktheapidocs = "*"
mknotebooks = "*"
flask-jwt-extended = "*"
quart = "*"
python-dotenv = "*"
structlog = "*"
folium = "*"
mapboxgl = "*"

[dev-packages]
jupyterlab = "*"
flowkit-jwt-generator = {editable = true,path = "./../flowkit_jwt_generator"}

[requires]
python_version = "3.7"
Expand Down
Loading