def run_kernel(): imported_objects = import_objects(options, self.style) kwargs = dict(argv=[], user_ns=imported_objects) connection_file = options.get("connection_file") if connection_file: kwargs["connection_file"] = connection_file start_kernel(**kwargs)
def run_kernel(): imported_objects = self.get_imported_objects(options) kwargs = dict( argv=[], user_ns=imported_objects, ) connection_file = options.get('connection_file') if connection_file: kwargs['connection_file'] = connection_file start_kernel(**kwargs)
def run_kernel(): imported_objects = self.get_imported_objects(options) kwargs = dict( argv=[], user_ns=imported_objects, ) connection_file = options.get('connection_file') if connection_file: kwargs['connection_file'] = connection_file start_kernel(**kwargs)
def run_kernel(): imported_objects = import_objects(options, self.style) if options.get('connection_file'): start_kernel(argv=[], user_ns=imported_objects, connection_file=options.get('connection_file')) else: start_kernel(argv=[], user_ns=imported_objects)