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

Notebook runs much faster than bokeh server #5357

Open
ahuang11 opened this issue Jun 10, 2019 · 1 comment
Open

Notebook runs much faster than bokeh server #5357

ahuang11 opened this issue Jun 10, 2019 · 1 comment
Assignees

Comments

@ahuang11
Copy link
Collaborator

ahuang11 commented Jun 10, 2019

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: holoviz/panel#451

@philippjfr
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants