In [ ]:
_beakerx.set("seq", Seq(1))
In [ ]:
_beakerx.set("map", Map("1" -> 2))
In [ ]:
%%javascript
alert(JSON.stringify(beakerx.seq))
alert(JSON.stringify(beakerx.map))
In [ ]:
_beakerx.get("map")
In [ ]:
_beakerx.set("int", 11)
In [ ]:
%%javascript
alert(JSON.stringify(beakerx.int))
In [ ]:
import collection.JavaConverters._
_beakerx.set("map", Map("1" -> 2).asJava)
_beakerx.set("seq", Seq(1).asJava)
In [ ]:
%%javascript
alert(JSON.stringify(beakerx.seq))
alert(JSON.stringify(beakerx.map))
In [ ]: