In [ ]:
%reload_ext nbtutor

Issue #6 - Issues with linemarkers


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)

Issue #14 - Modules being caught and rendered as instances


In [ ]:
%%nbtutor -r -f --debug
import os
import math
import numpy as np

Issue #12 - Circular refs causes infinite recursion when adding object data


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 [ ]: