예제 #1
0
파일: ipython.py 프로젝트: hgdeoro/gimp-hw
    def run(self, options, args, arduino):
        PromptManager.in_template = "PyArduino [\\#]> "
        PromptManager.out_template = "PyArduino [\\#]: "

        shell = InteractiveShellEmbed(banner2=banner)
        shell.user_ns = {}
        shell()
예제 #2
0
    def run(self, options, args, arduino):
        PromptManager.in_template = "PyArduino [\\#]> "
        PromptManager.out_template = "PyArduino [\\#]: "

        shell = InteractiveShellEmbed(banner2=banner)
        shell.user_ns = {}
        shell()
예제 #3
0
def main():

    options, args, proxy = default_main()  # pylint: disable=W0612
    cfg = Config()
    cfg.InteractiveShellEmbed.prompt_in1 = "PyArduinoProxy [\\#]> "
    cfg.InteractiveShellEmbed.prompt_out = "PyArduinoProxy [\\#]: "

    shell = InteractiveShellEmbed(config=cfg, banner2=banner)
    shell.user_ns = {}
    shell()
예제 #4
0
def main():

    options, args, proxy = default_main() # pylint: disable=W0612
    cfg = Config()
    cfg.InteractiveShellEmbed.prompt_in1="PyArduinoProxy [\\#]> "
    cfg.InteractiveShellEmbed.prompt_out="PyArduinoProxy [\\#]: "

    shell = InteractiveShellEmbed(config=cfg, banner2=banner)
    shell.user_ns = {}
    shell()
예제 #5
0
def gambit_shell():
    """
    Start an ipython session after initializing the environment
    """
    import gambit
    import gambit.nash
    import gambit.qre
    
    # Everything in this dictionary will be added to the top-level
    # namespace in the shell.
    ns = { 'gambit': gambit, 'nash': gambit.nash, 'qre': gambit.qre }

    shell = InteractiveShellEmbed()
    shell.user_ns = ns
    shell()
예제 #6
0
파일: cmdline.py 프로젝트: wenshen/gambit
def gambit_shell():
    """
    Start an ipython session after initializing the environment
    """
    import gambit
    import gambit.nash
    import gambit.qre

    # Everything in this dictionary will be added to the top-level
    # namespace in the shell.
    ns = {'gambit': gambit, 'nash': gambit.nash, 'qre': gambit.qre}

    shell = InteractiveShellEmbed()
    shell.user_ns = ns
    shell()
예제 #7
0
파일: shell.py 프로젝트: yimingliu/fsm
#!/usr/bin/env python

import IPython
import fsm.config.db
import fsm.config.app as app_config
#import arkplatform2.models_sql as model
from fsm.models import *
import sys
from IPython.frontend.terminal.embed import InteractiveShellEmbed

if __name__ == "__main__":
    print "=== Welcome to SNAC Merge Tool Shell (%s env) ===" % "dev"
    init_model(fsm.config.db.get_db_uri())
    shell = InteractiveShellEmbed()
    shell.user_ns = {}
    shell()