This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_alexa_location(): | |
API_URL = "https://api.eu.amazonalexa.com/v1/devices/{}/settings" \ | |
"/address".format(context.System.device.deviceId) | |
TOKEN = context.System.user.permissions.consentToken # check if not empty! fall back | |
API_HEADER = {'Accept': 'application/json', | |
'Authorization': 'Bearer {}'.format(TOKEN)} | |
r = requests.get(API_URL, headers=API_HEADER) | |
if r.status_code == 200: | |
return(r.json()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import fiona | |
import numpy as np | |
from bokeh.io import show, output_file | |
from bokeh.models import ColumnDataSource, HoverTool, LogColorMapper | |
from bokeh.plotting import figure, save | |
from shapely.geometry import Polygon, Point, MultiPoint, MultiPolygon | |
from shapely.prepared import prep | |
""" from: https://www.offenedaten-koeln.de/dataset/59a8a033-5ac8-4240-ab06-608a7f542472/resource/a677cd63-d887-4f0f-95cf-25781641e576 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# In[10]: | |
import pandas as pd | |
import fiona | |
import numpy as np | |
from bokeh.io import show, output_file | |
from bokeh.models import ColumnDataSource, HoverTool, LogColorMapper | |
from bokeh.palettes import Reds6 as palette |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# In[1]: | |
from bokeh.io import output_file, output_notebook, show | |
from bokeh.models import ( | |
GMapPlot, GMapOptions, ColumnDataSource, Circle, LogColorMapper, BasicTicker, ColorBar, | |
DataRange1d, PanTool, WheelZoomTool, BoxSelectTool, CustomJS, Slider, Toggle | |
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.