def func2(q1, q2):
    """
    to demonstrate debugging on exception
    """

    a = q1/q2
    
    if q2 == 5:
        z = 100
        IPS() # start embedded ipython shell in the local scope
        # -> explore global namespace

    
    return a
def func2 ( q1 , q2 ) : a = q1 / q2 if q2 == 5 : z = 100 IPS ( ) return a
to demonstrate debugging on exception