def num_executors(spark):
    """ Get the number of executors configured for Jupyter
    Returns:
      Number of configured executors for Jupyter
    """
    sc = spark.sparkContext
    return int(sc._conf.get("spark.executor.instances"))