ExampleComplexFlow


Automatic dependency tracking


In [10]:
%%isolate name(Init1)
a1 = 10
b1 = 20
c = 30
d = 90

In [11]:
%%isolate name(Init2)
d = 40
e = 50

In [12]:
%%isolate name(Process1)
print a1, d


10 40

In [13]:
%%isolate name(Process2)
print b1, c, e


20 30 50

In [14]:
g = %flowchart

In [15]:
i = %iso_debug

In [16]:
g


Out[16]:
Init110[1, 10]Init211[2, 11]Process112[3, 12]Process213[4, 13]a1c, b1de

In [17]:
%history


%%isolate nodename(Init1)  post(a1,c,b1,d)
a1 = 10
b1 = 20
c = 30
d = 90
%%isolate nodename(Init2)  post(e,d)
d = 40
e = 50
%%isolate nodename(Process1) pre(a1,d) 
print a1, d
%%isolate nodename(Process2) pre(c,e,b1) 
print b1, c, e
g = %flowchart
i = %iso_debug
g
%history
import IPython
ip = IPython.get_ipython()
ip.history_manager.input_hist_raw[28]
%%isolate nodename(Init1)  post(a1,c,b1,d)
a1 = 10
b1 = 20
c = 30
d = 90
%%isolate nodename(Init2)  post(e,d)
d = 40
e = 50
%%isolate nodename(Process1) pre(a1,d) 
print a1, d
%%isolate nodename(Process2) pre(c,e,b1) 
print b1, c, e
g = %flowchart
i = %iso_debug
g
%history

In [17]:


In [18]:
import IPython
ip = IPython.get_ipython()
ip.history_manager.input_hist_raw[28]


---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-18-2943eedda31b> in <module>()
      1 import IPython
      2 ip = IPython.get_ipython()
----> 3 ip.history_manager.input_hist_raw[28]

IndexError: list index out of range

In [ ]: