In [ ]:
%reload_ext nbtutor
In [ ]:
%%nbtutor -r -f --debug
def add(one, two):
ans = one + two
return ans
In [ ]:
%%nbtutor --step_all --debug
foo = 10
bar = 20
ans = add(foo, bar)
In [ ]:
%%nbtutor -r -f --step_all --debug
import my_module as mod
foo = 10
bar = 20
ans = mod.add(foo, bar)
In [ ]:
%%nbtutor -r -f --debug
def add(one, two):
ans = one + two
return ans
foo = 10
bar = 20
ans = add(foo, bar)
In [ ]:
%%nbtutor -r -f --debug
import os
import math
import numpy as np
In [ ]:
%%nbtutor -r -f --debug
foo = list()
foo.append(foo)
foo.append(10)
In [ ]:
%%nbtutor -r -f --debug
foo = list()
bar = list()
foo.append(bar)
bar.append(foo)
In [ ]:
%%nbtutor -r -f --debug
class Node:
def __init__(self):
self.value = 0
self.next = None
one = Node()
two = Node()
one.next = two
two.next = one
In [ ]: