in google-cloud-jupyter-config/google/cloud/jupyter_config/config.py [0:0]
def gcp_region():
"""Helper method to get the project configured through gcloud"""
region = get_gcloud_config("configuration.properties.dataproc.region")
if not region:
region = get_gcloud_config("configuration.properties.compute.region")
return region