%load_ext scilab2py.ipython x = %scilab [1 2; 3 4]; x a = [1, 2, 3] %scilab_push a %scilab a = a * 2; %scilab_pull a a %%scilab -i x -o y y = x + 3; y %%scilab -f svg xset("fpf"," ") contour2d(1:10,1:10,rand(10,10),5,rect=[0,0,11,11]); %%scilab -f jpg # simple plot using z = f(x, y) t = [0: 0.3: 2 * %pi]'; z = sin(t) * cos(t'); plot3d(t, t, z); %%scilab -f png [x, y] = meshgrid(0:0.1:3); r = sin(x - 0.5).^2 + cos(y - 0.5).^2; surf(x, y, r); %%scilab -g plot([1,2,3]) # brings up a Scilab plotting GUI