General Display

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.

In [1]:
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
In [2]:
display("Hello1")
display(slider)
display(Latex('$\\alpha^2 + \\eta$'))
display(progress)
display(YoutubeVideo("gSVvxOchT8Y"))
display(table1)
display("Hello3")
"done"
Hello1
$\alpha^2 + \eta$
Hello3
Out[2]:
done