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.

I can not place widgets on tabs in 0.12

from bokeh.models.widgets import Panel, Tabs,Toggle
from bokeh.io import output_file, output_server, show
from bokeh.plotting import figure

output_server("test")

startButton = Toggle(label="Start Test1",  button_type="success")
tab1 = Panel(child=startButton, title="circle")

startButton2 = Toggle(label="Start Test2",  button_type="success")
tab2 = Panel(child=startButton2, title="line")

tabs = Tabs(tabs=[ tab1, tab2 ])

show(tabs)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
AntonSavchenkocommented, Sep 13, 2016

Yup, doesn’t seem to work without at least one figure object…

If you really need only the widgets in tabs, I guess you could add a tiny empty figure:

from bokeh.layouts import widgetbox, row 

startButton = Toggle(label="Start Test1", button_type="success")
startButton2 = Toggle(label="Start Test2", button_type="success")
startButton3 = Toggle(label="Start Test3", button_type="success")

p=figure(plot_width=1,plot_height=1)
p.toolbar_location = None

tab1 = Panel(child=row(startButton,p), title="Start button")
tab2 = Panel(child=widgetbox(startButton2,startButton3), title="More Start buttons")

tabs = Tabs(tabs=[ tab1, tab2 ])

show(tabs)
0reactions
mattpapcommented, Feb 3, 2019

Well, 1x1 canvas is valid if min_border == 0 and there are no side panels. However, in any case, silent failure like this isn’t acceptable. For now I’ve been just throwing this exception whenever there are hard, unsatisfiable constraints, but this can and should be improved. I will hijack this issue to resolve that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

4 Useful Solutions to Fix “Tab Key Not Working” on Windows
Thus, this solution is to close TeamViewer. Step 1: Open the Task Manager by pressing the Ctrl + Shift + Esc keys simultaneously....
Read more >
How to Fix 'Tab Key not Working' on Windows? - Appuals.com
Solution 3: Restarting Computer · Press “Ctrl” + “Shift” + “Esc” to open Task Manager. · Click on the “Startup” tab and select...
Read more >
TAB Key not working - Microsoft Community
Try the Keyboard Troubleshooter at Settings > Update & Security > Troubleshoot. If this began within the recent past, See if you can...
Read more >
[Fix] 'Tab Key not Working' on Windows - YouTube
Read More: https://appuals.com/how-to-fix- tab -key- not - working -on-windows/
Read more >
5 Fixes You Must Try When Tabs Won't Open in Chrome
What should I do when tabs won't open in Chrome? · 1. Restart the Chrome browser · 2. Restart the computer · 3....
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