def get_kernel(display_name, executable, env):
    """Formats kernel in necessary format"""
    return {'argv': [executable, '-m', 'ipykernel', '-f',
        '{connection_file}'], 'display_name': display_name, 'env': env,
        'language': 'python'}
