コード例 #1
0
def ipcluster():
    """Start IPYthon cluster."""
    import logging
    logger = logging.getLogger()
    logger.info('Hellow from ipcluster')

    os.environ['PYTHONPATH'] = ':'.join(sys.path)
    ipclusterapp.launch_new_instance(argv='start -n 10'.split())
コード例 #2
0
ファイル: main.py プロジェクト: masteradamo/fowler.corpora
def ipcluster():
    """Start IPYthon cluster."""
    import logging
    logger = logging.getLogger()
    logger.info('Hellow from ipcluster')

    os.environ['PYTHONPATH'] = ':'.join(sys.path)
    ipclusterapp.launch_new_instance(argv='start -n 10'.split())
コード例 #3
0
if __name__ == "__main__":
    import sys
    from IPython.parallel.apps.ipclusterapp import launch_new_instance

    sys.exit(launch_new_instance())
コード例 #4
0
if __name__ == '__main__':
    from IPython.parallel.apps import ipclusterapp as app
    app.launch_new_instance()