def set_default_jvm_stdout(enable, parallel_flush=True):
    """
    This is useful utility method to get the output of the driver JVM from within a Jupyter notebook

    Parameters
    ----------
    enable: boolean
        Should flush the stdout by default when mlcontext.execute is invoked
        
    parallel_flush: boolean
        Should flush the stdout in parallel
    """
    global default_jvm_stdout, default_jvm_stdout_parallel_flush
    default_jvm_stdout = enable
    default_jvm_stdout_parallel_flush = parallel_flush
