def get_notebook_files( path:Path=None, # Directory to search (defaults to nbs_path) recursive:bool=True, # Search subdirectories)->List[Path]: # List of notebook paths
Get all notebook files in a directory
get_subdirectories
def get_subdirectories( path:Path=None, # Directory to search (defaults to nbs_path) recursive:bool=False, # Include all nested subdirectories)->List[Path]: # List of directory paths
Get subdirectories in a directory
Notebook Reading Utilities
read_notebook
def read_notebook( path:Path, # Path to notebook file)->Dict[str, Any]: # Notebook content as dict
# Test getting notebook filesnotebooks = get_notebook_files()print(f"Found {len(notebooks)} notebooks:")for nb in notebooks[:5]: # Show first 5print(f" - {nb.name}")