codeflare_sdk.common.utils package
Submodules
codeflare_sdk.common.utils.demos module
- codeflare_sdk.common.utils.demos.copy_demo_nbs(dir: str = './demo-notebooks', overwrite: bool = False)[source]
Copy the demo notebooks from the package to the current working directory
overwrite=True will overwrite any files that exactly match files written by copy_demo_nbs in the target directory. Any files that exist in the directory that don’t match these values will remain untouched.
- Args:
dir (str): The directory to copy the demo notebooks to. Defaults to “./demo-notebooks”. overwrite (bool): overwrite (bool): Whether to overwrite files in the directory if it already exists. Defaults to False.
- Raises:
FileExistsError: If the directory already exists.