def main(target_path=None):
    'Get example scripts, example notebooks, and example data.\n\n    Copy the examples from the package directory and get the example data either\n    from the package directory or from the Parcels website.\n    '
    if (target_path is None):
        parser = argparse.ArgumentParser(description='Get Parcels example data.')
        parser.add_argument('target_path', help='Where to put the tutorials?  (This path will be created.)')
        args = parser.parse_args()
        target_path = args.target_path
    if os.path.exists(target_path):
        print('Error: {} already exists.'.format(target_path))
        return
    copy_data_and_examples_from_package_to(target_path)
    set_jupyter_kernel_to_python_version(target_path, python_version=sys.version_info[0])
    remaining_example_data_files = _still_to_download(example_data_files, target_path)
    download_files(example_data_url, remaining_example_data_files, target_path)
Get example scripts, example notebooks, and example data.

Copy the examples from the package directory and get the example data either
from the package directory or from the Parcels website.
def main(target_path=None):
    'Get example scripts, example notebooks, and example data.\n\n    Copy the examples from the package directory and get the example data either\n    from the package directory or from the Parcels website.\n    '
    if (target_path is None):
        parser = argparse.ArgumentParser(description='Get Parcels example data.')
        parser.add_argument('target_path', help='Where to put the tutorials?  (This path will be created.)')
        args = parser.parse_args()
        target_path = args.target_path
    if os.path.exists(target_path):
        print('Error: {} already exists.'.format(target_path))
        return
    copy_data_and_examples_from_package_to(target_path)
    set_jupyter_kernel_to_python_version(target_path, python_version=sys.version_info[0])
    remaining_example_data_files = _still_to_download(example_data_files, target_path)
    download_files(example_data_url, remaining_example_data_files, target_path)