Disappearing Toolbar
See original GitHub issueIn the example below (the plot appears after the button is pressed), the toolbar disappears when the plot (or toolbar) is tapped. The problem appeared in 0.12.11 onwards.
Software versions… Bokeh 0.12.13 Python 3.5.2 Firefox 57.0.4 (64 bit)
from bokeh.models.sources import ColumnDataSource
from bokeh.models.layouts import Column, WidgetBox
from bokeh.models.widgets import Button, Div
from bokeh.plotting import Figure
from bokeh.io import curdoc
from bokeh.events import Tap
fig = Figure()
line_src = ColumnDataSource(data={'x': [0, 1], 'y': [0, 1]})
line = fig.line('x', 'y', source=line_src)
def update_data(event):
line_src.data['x'][1] = event.x
line_src.data['y'][1] = event.y
fig.renderers.remove(line)
fig.renderers.append(line)
fig.on_event(Tap, update_data)
def update_plot():
gui.children[1] = fig
btn = Button(label='Click to plot')
btn.on_click(update_plot)
gui = Column(WidgetBox(btn), Div())
curdoc().add_root(gui)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:15 (5 by maintainers)
Top Results From Across the Web
3 ways to get your toolbar back in Google Chrome if it's missing
Your Google Chrome toolbar can sometimes go missing, especially if you're in full screen mode. · Check the extensions and bookmarks menu to...
Read more >How to Fix Taskbar Disappeared Error in Win 10/11 [2022]
Simply right-click on the Taskbar would be one's obvious choice, but in this scenario, you would have to access the Control Panel, and...
Read more >Why Does My Task Bar Keep Disappearing? - Techwalla
Your Windows taskbar could have disappeared due to one of several reasons. It may simply be hidden. It could have been moved or...
Read more >5 Ways to Get Hidden Browser Toolbars Back - wikiHow
1. Open Google Chrome {"smallUrl":"https:\/\/www.wikihow.com\/images\/c\/cd\/Android7chrome.png","bigUrl":"\/images\/thumb\/c\/cd\/Android7chrome.png\/30px ... 2. Make sure that you aren't using Chrome in full-screen mode. Full-screen mode can cause toolbars to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just re-ran the original example from the 1.1.0 dev2 build and it works fine, many thanks to the dev team for the continuing great work!
The problem here is a result of toolbar panel being created in bokehjs and added to
Plot.renderers
, which isn’t synchronized properly between browser and server, so when line glyph is updated, bokehjs attempts to remove the panel and fails with that. The failure allows for rendering a panel that was destroyed, and this results in an exception. This is along standing problem that we allow internal bokehjs objects to interact with the server. Fixing this would likely fix a few dozen other issues.