Debugging di Jupyter Notebook

Use this, life saver.

from IPython.core.debugger import set_trace

def add_to_life_universe_everything(x):
    answer = 42
    set_trace()
    answer += x
    return answer

add_to_life_universe_everything(12)

Source: https://davidhamann.de/2017/04/22/debugging-jupyter-notebooks/


Author | Yoga Yudistira

Currently a student in one of University in Yogyakarta