def connect_to_emr()

in sagemaker_studio_sparkmagic_lib/cli.py [0:0]


def connect_to_emr(args):
    sparkmagic.connect_to_emr_cluster(
        cluster_id=args.cluster_id,
        user_name=args.user_name,
        role_arn=args.role_arn,
        # Setting kernel restart as false since when executed from cli, code is executed in bash process
        # and its not possible to restart kernel
        restart_kernel=False,
    )