#Configure some notebook settings
from traitlets.config.manager import BaseJSONConfigManager
path='/Users/Esh/.jupyter/nbconfig'
cm = BaseJSONConfigManager(config_dir=path)
cm.update('livereveal', {
'theme': 'beige',
'transition': 'fade',
'transition-speed':'default',
'controls': 'true',
'scroll':'true',
'width': 1024,
'heigh': 768
})
{u'controls': 'true', u'heigh': 768, u'hideAddressBar': True, u'scroll': 'true', u'slideNumber': False, u'theme': 'beige', u'transition': 'fade', u'transition-speed': 'default', u'width': 1024}
#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'>