(add_arguments=[], remove_arguments=[], visible=True)
return launch_console(params=params, visible=visible)
Launch a new instance of python with arguments provided.
Launch a new instance of python with arguments provided.
Launch a new instance of python with arguments provided .
def _launch(add_arguments=[], remove_arguments=[], visible=True):
    """Launch a new instance of python with arguments provided."""
    if isinstance(add_arguments, str):
        add_arguments = [add_arguments]
    if isinstance(remove_arguments, str):
        remove_arguments = [remove_arguments]
    script = os.path.abspath(sys.argv[0])
    params = ' '.join([script] + [i for i in sys.argv[1:] if i not in remove_arguments] + list(add_arguments))
    return launch_console(params=params, visible=visible)
def _launch ( add_arguments = [ ] , remove_arguments = [ ] , visible = True ) : if isinstance ( add_arguments , str ) : add_arguments = [ add_arguments ] if isinstance ( remove_arguments , str ) : remove_arguments = [ remove_arguments ] script = os . path . abspath ( sys . argv [ 0 ] ) params = ' ' . join ( [ script ] + [ i for i in sys . argv [ 1 : ] if i not in remove_arguments ] + list ( add_arguments ) ) return launch_console ( params = params , visible = visible )