#Put some code here!
x = 10
print x
10
#Put more code here!
%load_ext rpy2.ipython
%%R
cat("This is an R cell!\n")
seq(1,10,2)
This is an R cell! [1] 1 3 5 7 9
%load_ext pymatbridge
%%matlab
disp('This is a matlab cell')
repmat([1 2 3],2)
This is a matlab cell ans = 1 2 3 1 2 3 1 2 3 1 2 3
x = %R seq(1,10,2)
x *= 10
print("Look now I'm a numpy array!")
print(type(x))
Look now I'm a numpy array! <type 'numpy.ndarray'>