make_notebook()
Create a notebook from a stub.
Usage
make_notebook(
name: str,
type: NotebookType | None = None,
dir: str | Path | None = None,
stub: str = 'default',
*,
overwrite: bool = False,
subdir: str | None = None,
) -> Path
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
| name required | str |
The notebook name. It is turned into a file name such as |
|
| type | NotebookType | None | None |
|
| dir | str | Path | None | None |
The folder. Defaults to |
| stub | str | 'default' |
The stub to start from, such as |
| overwrite | bool | False |
Replace an existing file. |
| subdir | str | None | None |
A subfolder of |
Value
The path of the new file.