You can edit SConstruct files inside an IPython notebook using %%file
In [8]:
%%file SConstruct
#
# Setting up
#
from rsf.proj import *
#
# Make filter.rsf
#
Flow('filter',None,
'spike n1=1000 k1=300 | bandpass fhi=2 phase=1')
#
# Make filter.vpl
#
Result('filter',
'wiggle clip=0.02 title="Welcome to Madagascar"')
End()
After running SCons through a shell escape, you can display images inline using m8r
API
In [14]:
!scons -Q
In [15]:
import m8r
m8r.Vplot('Fig/filter.vpl',penopts='ppi=60')
Out[15]:
In [ ]: