In [1]:
from bokeh.io import output_notebook, show
output_notebook()
In [2]:
from bokeh.models import GeoJSONDataSource
with open('world110.json', 'r') as f:
geojson = f.read()
geo_source = GeoJSONDataSource(geojson=geojson)
In [3]:
from bokeh.plotting import figure
p = figure(height=450, width=900)
p.patches(xs='xs', ys='ys', source=geo_source)
p.multi_line(xs='xs', ys='ys', line_color='white', line_width=0.1, source=geo_source)
show(p)
Out[3]:
In [ ]:
In [ ]:
In [ ]: