holoviews icon indicating copy to clipboard operation
holoviews copied to clipboard

Notebook runs much faster than bokeh server

Open ahuang11 opened this issue 5 years ago • 1 comments

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: notebook

Bokeh serve takes almost a minute to update using same code, same machine bokeh_serve

Also the gridspec responsiveness breaks as mentioned: https://github.com/pyviz/panel/issues/451

ahuang11 avatar Jun 10 '19 04:06 ahuang11

Should probably be raised either in HoloViews or Panel, but will need investigating first.

philippjfr avatar Jun 10 '19 14:06 philippjfr