In [ ]:
import com.twosigma.beakerx.widget.Select
slt = new Select()
slt.options=['Linux', 'Windows', 'OSX']
slt.value = 'Windows'
slt.size = 3
slt
In [ ]:
slt.value
In [ ]:
slt.value = 'Linux'
In [ ]:
slt.description = 'os'
In [ ]:
slt.disabled = true
In [ ]:
import com.twosigma.beakerx.widget.SelectionSlider
sld = new SelectionSlider()
sld.options=['scrambled', 'sunny side up', 'poached', 'over easy', 'burned']
sld.value = 'sunny side up'
sld
In [ ]:
sld.value
In [ ]:
sld.value='poached'
In [ ]:
sld.description='I like my eggs ...'
In [ ]:
sld.orientation='vertical'
In [ ]:
sld.disabled = true
In [ ]:
import com.twosigma.beakerx.widget.ToggleButtons
tb = new ToggleButtons()
tb.options=['Slow', 'Regular', 'Fast']
tb.button_style = 'success'
tb.tooltips=['SL', 'RE', 'Fast']
tb
In [ ]:
tb.value
In [ ]:
tb.value = 'Regular'
In [ ]:
tb.description='Speed:'
In [ ]:
tb.button_style = 'info'
In [ ]:
tb.icons=['check', 'check', 'check']
In [ ]:
tb.disabled = true
In [ ]:
import com.twosigma.beakerx.widget.SelectMultiple
sml = new SelectMultiple()
sml.options=['Linux', 'Windows', 'OSX']
sml.value = ['Windows', 'Linux']
sml
In [ ]:
sml.value
In [ ]:
sml.value = ['Linux', 'OSX']
In [ ]:
sml.description = 'os'
In [ ]:
sml.disabled = true
In [ ]:
import com.twosigma.beakerx.widget.Text
txt = new Text()
txt.value = "Test Text"
txt
In [ ]:
txt.value
In [ ]:
txt.value = 'new value'
In [ ]:
txt.description = 'desc'
In [ ]:
txt.disabled = true
In [ ]:
import com.twosigma.beakerx.widget.Textarea
ta = new Textarea()
ta.value = "Textarea example"
ta
In [ ]:
ta.value
In [ ]:
ta.value = 'new value'
In [ ]:
ta.description = 'desc'
In [ ]:
ta.disabled = true
In [ ]:
import com.twosigma.beakerx.widget.Label
lbl = new Label()
lbl.value = "Lbl123"
lbl
In [ ]:
lbl.value
In [ ]:
lbl.value = 'new value'
In [ ]:
import com.twosigma.beakerx.widget.HTML
ht = new HTML()
ht.value = '<input type="text" value="test" id ="x1">'
ht
In [ ]:
ht.value
In [ ]:
ht.value = "<b>Hello World</b>"
In [ ]:
ht.description= "some HTML:"
In [ ]:
import com.twosigma.beakerx.widget.HTMLMath
mth = new HTMLMath()
mth.value = "x squared looks as \$x^2\$"
mth
In [ ]:
mth.value
In [ ]:
mth.value = "y squared looks as \$y^2\$"
In [ ]:
mth.description = "formula:"
In [ ]:
import com.twosigma.beakerx.widget.Button
tb = new Button(tooltip : "tooltip1", description : "click me")
tb
In [ ]:
tb.icon = 'check'
In [ ]:
tb.button_style = 'success'
In [ ]:
tb.disabled = true
In [ ]: