Multilanguage notebook
Lepiter can be used as a multi language notebook technology.
Example
We take all pages from the current database using a Pharo snippet:
pharoArray := (thisSnippet database pages collect: [:each | each children size]) asArray
And then we compute the variance of the mean amount of top snippets in the pages in JavaScript:
var array; array = pharoArray; var ss = require('simple-statistics'); var result = ss.variance(array); result
This shows that:
we can execute code in Pharo and JavaScript
we can move objects from one to another
we can embed the results in the environment