fun double(x: Int): Int {
return 2*x
}
val x = 23
"hello, " + double(3) + x
val numbers: MutableList<Number> = mutableListOf(1, 4, 3)
val line = Line()
line.setY(numbers)
val plot = Plot()
plot.setTitle("Kotlin Plotting")
plot.add(line)
plot
%%python
from beakerx import *
pp = Plot(title="Title", xLabel="Horizontal", yLabel="Vertical")
pp.add(Line(displayName="Line", x=[1, 4, 6, 8, 10],y=[3, 6, 4, 5, 9]))
press 'Shift' + 'Tab' for doc