holoviews
holoviews copied to clipboard
Notebook runs much faster than bokeh server
import panel as pn
import pandas as pd
import hvplot.pandas
import geoviews as gv
gv.renderer('bokeh').theme = 'caliber'
df = pd.read_csv('merged_traffic_data.csv').drop(
['Unnamed: 0', 'time'], axis=1)
pnts = df.hvplot.points('lng', 'lat', datashade=True,
geo=True, hover=False, xaxis='bare', yaxis='bare')
tile = gv.tile_sources.OSM()
gspec = pn.GridSpec(sizing_mode='stretch_both')
gspec[:1, :1] = pnts * tile
gspec.servable()
Notebook takes seconds to update:
Bokeh serve takes almost a minute to update using same code, same machine
Also the gridspec responsiveness breaks as mentioned: https://github.com/pyviz/panel/issues/451
Should probably be raised either in HoloViews or Panel, but will need investigating first.