def run_ipython_shell_v10(globals, locals, first_time=[True]):
    """IPython shell from IPython version 0.10"""
    if first_time:
        banner = 'Hit Ctrl-D to return to PuDB.'
        first_time.pop()
    else:
        banner = ''
    ns = locals.copy()
    from IPython.Shell import IPShell
    IPShell(argv=[], user_ns=ns, user_global_ns=globals).mainloop(banner=banner
        )
