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())
if __name__ == "__main__": import sys from IPython.parallel.apps.ipclusterapp import launch_new_instance sys.exit(launch_new_instance())
if __name__ == '__main__': from IPython.parallel.apps import ipclusterapp as app app.launch_new_instance()