Points now showing in scatter graph

My code is just extracted from the reference page of Bokeh but seems to not be working properly. Points are not showing.

from bokeh.models import ColumnDataSource, GMapOptions
from bokeh.plotting import gmap, show

map_options = GMapOptions(lat=30.2861, lng=-97.7394, map_type=“roadmap”, zoom=11)

p = gmap(api_key_maps, map_options, title=“Austin”, width=500, height=500)

source = ColumnDataSource(
data=dict(lat=[ 30.29, 30.20, 30.29],
lon=[-97.70, -97.74, -97.78]),
)

p.circle([-97.70, -97.74, -97.78], [ 30.29, 30.20, 30.29], size=15, color=“navy”, alpha=0.5)

show(p)

This was a recent regression on 3.4.x releases

GMap example not showing glyphs · Issue #13771 · bokeh/bokeh · GitHub

It will be resolved in upcoming 3.5 release and possibly in a future 3.4.2 point release as well. For now, use Bokeh 3.3 (or earlier) instead.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.