Пример #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)
Пример #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)
Пример #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)
Пример #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)