Source

dotfiles / pdbrc.py

Full commit
1
2
3
4
5
6
7
8
9
from pprint import pprint

def ipy():
    try:
        from IPython.Shell import IPShellEmbed
        return IPShellEmbed(argv='')
    except ImportError:
        from IPython.frontend.terminal.embed import embed
        return embed