com.twosigma.beakerx.Display.display
function is automatically imported, and is modeled after
IPython.display.
With it you can display rich media, regular values, and widgets from anywhere in your code.
import com.twosigma.beakerx.widget.IntSlider
import com.twosigma.beakerx.widget.IntProgress
slider = new IntSlider()
progress = new IntProgress()
def mapList = [
[a:1, b:2, c:3],
[a:4, b:5, c:6],
[a:7, b:8, c:5]
]
table1 = new TableDisplay(mapList)
OutputCell.HIDDEN
display("Hello1")
display(slider)
display(Latex('$\\alpha^2 + \\eta$'))
display(progress)
display(YoutubeVideo("gSVvxOchT8Y"))
display(table1)
display("Hello3")
"done"
Hello1
Hello3
done