Show More
@@ -87,13 +87,13 b' class FileContentsManager(FileManagerMixin, ContentsManager):' | |||||
87 | This can be used to process the file on disk, |
|
87 | This can be used to process the file on disk, | |
88 | such as converting the notebook to a script or HTML via nbconvert. |
|
88 | such as converting the notebook to a script or HTML via nbconvert. | |
89 |
|
89 | |||
90 | It will be called as (all arguments passed by keyword): |
|
90 | It will be called as (all arguments passed by keyword):: | |
91 |
|
91 | |||
92 | hook(os_path=os_path, model=model, contents_manager=instance) |
|
92 | hook(os_path=os_path, model=model, contents_manager=instance) | |
93 |
|
93 | |||
94 | path: the filesystem path to the file just written |
|
94 | - path: the filesystem path to the file just written | |
95 | model: the model representing the file |
|
95 | - model: the model representing the file | |
96 | contents_manager: this ContentsManager instance |
|
96 | - contents_manager: this ContentsManager instance | |
97 | """ |
|
97 | """ | |
98 | ) |
|
98 | ) | |
99 | def _post_save_hook_changed(self, name, old, new): |
|
99 | def _post_save_hook_changed(self, name, old, new): |
@@ -81,14 +81,14 b' class ContentsManager(LoggingConfigurable):' | |||||
81 | such as removing notebook outputs or other side effects that |
|
81 | such as removing notebook outputs or other side effects that | |
82 | should not be saved. |
|
82 | should not be saved. | |
83 |
|
83 | |||
84 | It will be called as (all arguments passed by keyword): |
|
84 | It will be called as (all arguments passed by keyword):: | |
85 |
|
85 | |||
86 | hook(path=path, model=model, contents_manager=self) |
|
86 | hook(path=path, model=model, contents_manager=self) | |
87 |
|
87 | |||
88 | model: the model to be saved. Includes file contents. |
|
88 | - model: the model to be saved. Includes file contents. | |
89 |
|
|
89 | Modifying this dict will affect the file that is stored. | |
90 | path: the API path of the save destination |
|
90 | - path: the API path of the save destination | |
91 | contents_manager: this ContentsManager instance |
|
91 | - contents_manager: this ContentsManager instance | |
92 | """ |
|
92 | """ | |
93 | ) |
|
93 | ) | |
94 | def _pre_save_hook_changed(self, name, old, new): |
|
94 | def _pre_save_hook_changed(self, name, old, new): |
General Comments 0
You need to be logged in to leave comments.
Login now