Skip to content

Launch Notebook Per Ensemble on Compute Cloud

flyvis_cli.analysis.notebook_per_ensemble

Script to run a jupyter notebook for an ensemble.

run_ensemble_notebook
run_ensemble_notebook(args, kwargs)

Launch ensemble notebook job.

Parameters:

Name Type Description Default
args Namespace

Command-line arguments.

required
kwargs List[str]

Additional keyword arguments as a list of strings.

required
Source code in flyvis_cli/analysis/notebook_per_ensemble.py
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
def run_ensemble_notebook(args: argparse.Namespace, kwargs: List[str]) -> None:
    """
    Launch ensemble notebook job.

    Args:
        args: Command-line arguments.
        kwargs: Additional keyword arguments as a list of strings.
    """
    launch_single(
        args.ensemble_id,
        args.task_name,
        args.nP,
        args.gpu,
        args.q,
        str(NOTEBOOK_SCRIPT_DIR),
        args.dry,
        ["--notebook_path", args.notebook_path] + ["per_ensemble:bool=true"] + kwargs,
    )
usage:
flyvis notebook-per-ensemble [-h] [...] --ensemble_id ENSEMBLE_ID --task_name TASK_NAME --notebook_path PATH
       or
notebook_per_ensemble.py [-h] [...] --ensemble_id ENSEMBLE_ID --task_name TASK_NAME --notebook_path PATH

Run ensemble notebook on the compute cloud.

options:
  -h, --help            show this help message and exit
  --nP NP               Number of processors.
  --gpu GPU             Number of GPUs.
  --q Q                 Queue.
  --ensemble_id ENSEMBLE_ID
                        Id of the ensemble, e.g. 0045.
  --task_name TASK_NAME
                        Name given to the task, e.g., flow.
  --notebook_path NOTEBOOK_PATH
                        Path of the notebook to execute. Default: /groups/tura
                        ga/home/lappalainenj/FlyVis/private/flyvision/flyvis/a
                        nalysis/__main__.ipynb
  --dry                 Perform a dry run without actually launching jobs.