Exemplo n.º 1
0
def run_ptpython_shell(globals, locals):
    # Use the default ptpython history
    history_filename = get_ptpython_history_file()
    ptpython_embed(globals=globals.copy(),
                   locals=locals.copy(),
                   history_filename=history_filename,
                   configure=run_config)
Exemplo n.º 2
0
def run_ptpython_shell(globals, locals):
    # Use the default ptpython history
    import os
    history_filename = os.path.expanduser('~/.ptpython_history')
    ptpython_embed(globals.copy(), locals.copy(),
                   history_filename=history_filename,
                   configure=run_config)
Exemplo n.º 3
0
def run_ptpython_shell(locals, globals, first_time):
    # Use the default ptpython history
    import os
    history_filename = os.path.expanduser('~/.ptpython_history')
    ptpython_embed(globals.copy(),
                   locals.copy(),
                   history_filename=history_filename)
Exemplo n.º 4
0
def run_ptpython_shell(globals, locals):
    # Use the default ptpython history
    import os
    history_filename = os.path.expanduser('~/.ptpython/history')
    ptpython_embed(globals=globals.copy(), locals=locals.copy(),
                   history_filename=history_filename,
                   configure=run_config)