nbautoexport.utils
JupyterNotebook
pydantic-model
__hash__(self)
special
Return hash(self).
Source code in nbautoexport/utils.py
43 44 |
|
cleared_argv()
Context manager that temporarily clears sys.argv. Useful for wrapping nbconvert so unexpected arguments from outer program (e.g., nbautoexport) aren't passed to nbconvert.
Source code in nbautoexport/utils.py
72 73 74 75 76 77 78 79 80 81 82 |
|
find_notebooks(directory)
Finds Jupyter notebooks in a directory. Not recursive.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
directory |
Path |
directory to search for notebook files |
required |
Returns:
Type | Description |
---|---|
List[nbautoexport.utils.JupyterNotebook] |
List[JupyterNotebook]: notebooks found |
Source code in nbautoexport/utils.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
working_directory(directory)
Changes working directory and returns to previous on exit.
Source code in nbautoexport/utils.py
85 86 87 88 89 90 91 92 93 |
|