question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disappearing Toolbar

See original GitHub issue

In 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
marcuskdcommented, Feb 12, 2019

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!

2reactions
mattpapcommented, Feb 6, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >
Windows - Taskbar Has Disappeared from the Desktop
The taskbar may be set to "Auto-hide".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found