-> import "Simantics/Python"\r
-> import "Vector"\r
+> import "Python"\r
> \r
> runPython do\r
> executePythonStatement "foo = 'bar'\nd = dir()"\r
> executePythonStatement "bar = foo.cumsum(1)"\r
> getPythonNDArrayVariable "bar"\r
ndarray(2x3) [[1.0, 3.0, 6.0], [4.0, 9.0, 15.0]]\r
+> runPython do\r
+> setPythonVariable "foo" ([1.0, 2.0, 3.0, 4.0] :: [Double])\r
+> executePythonStatement "foo.append(sum(foo))"\r
+> getPythonVariable "foo" :: [Double]\r
+[1.0, 2.0, 3.0, 4.0, 10.0]\r