nbautoexport.utils
¶
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 /home/runner/work/nbautoexport/nbautoexport/nbautoexport/utils.py
96 97 98 99 100 101 102 103 104 105 106 |
|
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[JupyterNotebook]
|
List[JupyterNotebook]: notebooks found |
Source code in /home/runner/work/nbautoexport/nbautoexport/nbautoexport/utils.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
|
working_directory(directory)
¶
Changes working directory and returns to previous on exit.
Source code in /home/runner/work/nbautoexport/nbautoexport/nbautoexport/utils.py
109 110 111 112 113 114 115 116 117 |
|