import com.twosigma.beakerx.widget.IntSlider
w = new IntSlider(value : 60)
w
w.value
w.value = 76
w.description = "desc1"
w.disabled = true
w.disabled = false
w.max = 250
w.min = 50
w.value = 150
w.orientation = "vertical"
w.step = 20
w.value = 76
w.style.handle_color = "#F04080"
import com.twosigma.beakerx.widget.FloatSlider
fs = new FloatSlider(value : 10.3)
fs
fs.value
fs.value = 7.6
fs.description = "float"
fs.disabled = true
fs.disabled = false
fs.max = 2.50
fs.step = 0.1
fs.min = 0.5
fs.value = 1.5
fs.orientation = "vertical"
fs.step = 0.2
fs.value = 0.76
fs.style.handle_color = "#F04080"
import com.twosigma.beakerx.widget.IntProgress
bar = new IntProgress(value : 60)
bar
bar.value
bar.value = 76
bar.description = "desc2"
bar.max = 250
bar.min = 50
bar.value = 150
bar.orientation = "vertical"
import com.twosigma.beakerx.widget.IntProgress
bar.barStyle = IntProgress.BarStyle.SUCCESS
import com.twosigma.beakerx.widget.FloatProgress
fbar = new FloatProgress(value : 10.3)
fbar
fbar.value
fbar.value = 17.6
fbar.description = "fbar"
fbar.max = 2.5
fbar.step = 0.1
fbar.min = 0.5
fbar.value = 1.5
fbar.orientation = "vertical"
import com.twosigma.beakerx.widget.IntRangeSlider
irs = new IntRangeSlider()
irs.value = [10,40]
irs
irs.value
irs.value = [20, 30]
irs.description = "desc3"
irs.disabled = true
irs.disabled = false
irs.max = 250
irs.min = 50
irs.value = [150, 200]
irs.orientation = "vertical"
irs.step = 20
irs.value = [76, 96]
irs.style.handle_color = "#F04080"
import com.twosigma.beakerx.widget.FloatRangeSlider
frs = new FloatRangeSlider()
frs.value = [10.3, 40.4]
frs
frs.value
frs.value = [20.7, 30.8]
frs.description = "desc4"
frs.disabled = true
frs.disabled = false
frs.step = 0.1
frs.max = 2.5
frs.min = 0.5
frs.value = [1.5, 2.0]
frs.orientation = "vertical"
frs.step = 0.2
frs.value = [0.76, 0.96]
frs.style.handle_color = "#F04080"
import com.twosigma.beakerx.widget.Output
out = new Output()
OutputManager.setOutput(new Output())
out
for (i = 0; i <10; i++) {
println("Hello "+ i)
}
"result loop"
out.appendStdout("Hello 2")
out.appendStderr("Error 1")
System.err.println("Error 2");
out.clearOutput()
println("Hello 3")
import com.twosigma.beakerx.widget.IntSlider
out.display(new IntSlider())
OutputManager.setOutput(null)
println("Hello 6")
import com.twosigma.beakerx.widget.Output
OutputManager.setStandardOutput(new Output())
println("Hello only stdout")
System.err.println("Error for onlyOut");
OutputManager.clear()
OutputManager.setStandardOutput(null)
import com.twosigma.beakerx.widget.Output
OutputManager.setStandardError(new Output())
println("Hello only stderr")
System.err.println("Error for onlyErr");
OutputManager.setStandardError(null)
import com.twosigma.beakerx.widget.Output
out2 = new Output()
OutputManager.setOutput(out2)
out2
println("before")
out2.display(YoutubeVideo("gSVvxOchT8Y"))
println("inside")
out2.display(SVG("https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/car.svg"))
println("after")
"done"
out2.display(YoutubeVideo("gSVvxOchT8Y"))
out2.clearOutput()
OutputManager.setOutput(null)