Module Expr Str Import alias identifier Import alias identifier FunctionDef arguments args NameParam NameParam defaults Num body Expr Str For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str Print Call AttributeLoad CompareEq NameLoad Num attr keyword Num Expr Call NameLoad Assign NameStore SubscriptLoad NameLoad Slice For NameStore NameLoad body For NameStore Call NameLoad NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad If BoolOpOr CompareEq NameLoad Num BoolOpAnd CompareEq NameLoad Num CompareIn NameLoad NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Return BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num Assign NameStore Call NameLoad NameLoad Print Str NameLoad Print Str NameLoad
N/A N/A 
Conway's game of life vectorized numpy example.

Probably not the easiest example.
 N/A numpy np N/A scipy.spatial.distance sd conway N/A N/A population generations N/A 100 N/A N/A Runs Conway's game of life on an initial population. N/A i N/A range generations N/A N/A population N/A evolve population N/A population N/A evolve N/A N/A population N/A N/A N/A Evolves the population by one generation. N/A cbdist N/A N/A sd cdist population population metric cityblock N/A N/A N/A N/A cbdist 1 sum axis 0 N/A N/A exit N/A active_cells N/A population N/A N/A cell population N/A N/A neighbor N/A neighbors cell N/A N/A N/A neighbor active_cells N/A N/A N/A N/A active_cells append neighbor N/A new_population N/A N/A cell active_cells N/A N/A count N/A sum N/A N/A neighbor population N/A neighbor N/A neighbors cell N/A N/A N/A count 3 N/A N/A count 2 N/A cell population N/A N/A N/A cell new_population N/A N/A N/A N/A new_population append cell N/A new_population N/A neighbors N/A N/A popultion N/A N/A N/A Generate 2D array of all possible neighbors N/A shift N/A N/A np array N/A N/A 1 0 N/A -1 0 N/A 0 1 N/A 0 -1 N/A 1 1 N/A 1 -1 N/A -1 1 N/A -1 -1 N/A N/A N/A N/A np array cell shift N/A N/A blinker N/A N/A np array N/A N/A 0 0 N/A 1 0 N/A -1 0 N/A end N/A conway blinker N/A Start:  blinker N/A End:  end