import com.twosigma.beakerx.widget.IntSlider
w = new IntSlider()
w.value = 60
w
w.value
w.value = 76
w.description = "description"
w.disabled = false
w.max = 200
w.min = 50
w.orientation = "vertical"
w.style.handle_color = "#F04080"
w.step = 20
w.layout.visibility = false
import com.twosigma.beakerx.widget.IntProgress
bar = new IntProgress()
bar.value = 10
bar
bar.value
bar.value = 110
bar.max = 300
bar.min = 50
bar.step = 20
bar.orientation = 'horizontal'
import com.twosigma.beakerx.widget.RadioButtons
rb = new RadioButtons()
rb.options=['alpha', 'beta', 'delta', 'gamma']
rb.value = 'beta'
rb
rb.value
rb.value = 'delta'
import com.twosigma.beakerx.widget.Select
select = new Select()
select.options=['Linux', 'Windows', 'OSX']
select.value = 'Windows'
select
select.value
select.value = 'Linux'
import com.twosigma.beakerx.widget.Checkbox
cb = new Checkbox()
cb
cb.value
cb.value = true
import com.twosigma.beakerx.widget.ColorPicker
cp = new ColorPicker()
cp.value = "blue"
cp
cp.value
cp.value = 'red'
cp.concise = false
//cp.concise = true
import com.twosigma.beakerx.widget.Text
t = new Text()
t.value = "Text example 1"
t
t.value
t.value ="Text example 2"
import com.twosigma.beakerx.widget.Textarea
ta = new Textarea()
ta.value = "Textarea example 1"
ta
ta.value
ta.value ="Textarea example 2"
import com.twosigma.beakerx.widget.ToggleButton
tb = new ToggleButton()
tb.tooltip = "ToggleButton tooltip 1"
tb.icon = 'check'
tb.description = 'Click me'
tb
tb.value
tb.value = true
//tb.value = false
tb.tooltip = "ToggleButton tooltip 2"
import com.twosigma.beakerx.widget.FloatSlider
fs = new FloatSlider()
fs.value = 10.1
fs
fs.value
fs.value = 22.2
import com.twosigma.beakerx.widget.FloatSlider
fs = new FloatSlider()
fs.max = 200
fs. min = 10
fs.value = 36.6
fs.style.handle_color = "orange"
fs
import com.twosigma.beakerx.widget.FloatProgress
floatProgress = new FloatProgress()
floatProgress.value = 10.2
floatProgress
floatProgress.value
floatProgress.value = 33.3
import com.twosigma.beakerx.widget.Label
label = new Label()
label.value = "Label 1"
label
label.value
label.value = "Label 2"
import com.twosigma.beakerx.widget.HTML
label = new HTML()
label.value = "Hello World"
label
label.value = "Hello World"
import com.twosigma.beakerx.widget.Image
import java.nio.file.Files
byte[] picture = Files.readAllBytes(new File("../resources/img/widgetArch.png").toPath());
image = new Image()
image.format='png'
image.value= picture
image.width=300
image.height=400
image
import com.twosigma.beakerx.widget.DatePicker
datePicker = new DatePicker()
datePicker
datePicker.value
import com.twosigma.beakerx.widget.IntRangeSlider
w = new IntRangeSlider()
w.value = [10,40]
w.orientation = "horizontal"
//w.orientation = "vertical"
w
import com.twosigma.beakerx.widget.BoundedIntText
w = new BoundedIntText()
w.min = 0
w.max = 10
w
import com.twosigma.beakerx.widget.IntText
w = new IntText()
w
import com.twosigma.beakerx.widget.IntText
w = new IntText()
w
import com.twosigma.beakerx.widget.Play
w = new Play()
w
import com.twosigma.beakerx.widget.FloatRangeSlider
w = new FloatRangeSlider()
w.value = [10,40]
w.orientation = "horizontal"
//w.orientation = "vertical"
w
import com.twosigma.beakerx.widget.BoundedFloatText
w = new BoundedFloatText()
w.min = 0
w.max = 10
w
import com.twosigma.beakerx.widget.FloatText
w = new FloatText()
w
//Example with passing different type to value
import com.twosigma.beakerx.widget.IntRangeSlider
w = new IntRangeSlider()
w.value = ["10",[49.6]]
w.orientation = "horizontal"
//w.orientation = "vertical"
w
//Example with passing different type to value
import com.twosigma.beakerx.widget.IntRangeSlider
import java.util.Collection
Collection