mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Fix some formatting for config options help
This commit is contained in:
parent
0dd26a9b32
commit
80b931897c
@ -87,13 +87,13 @@ class FileContentsManager(FileManagerMixin, ContentsManager):
|
|||||||
This can be used to process the file on disk,
|
This can be used to process the file on disk,
|
||||||
such as converting the notebook to a script or HTML via nbconvert.
|
such as converting the notebook to a script or HTML via nbconvert.
|
||||||
|
|
||||||
It will be called as (all arguments passed by keyword):
|
It will be called as (all arguments passed by keyword)::
|
||||||
|
|
||||||
hook(os_path=os_path, model=model, contents_manager=instance)
|
hook(os_path=os_path, model=model, contents_manager=instance)
|
||||||
|
|
||||||
path: the filesystem path to the file just written
|
- path: the filesystem path to the file just written
|
||||||
model: the model representing the file
|
- model: the model representing the file
|
||||||
contents_manager: this ContentsManager instance
|
- contents_manager: this ContentsManager instance
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
def _post_save_hook_changed(self, name, old, new):
|
def _post_save_hook_changed(self, name, old, new):
|
||||||
|
@ -81,14 +81,14 @@ class ContentsManager(LoggingConfigurable):
|
|||||||
such as removing notebook outputs or other side effects that
|
such as removing notebook outputs or other side effects that
|
||||||
should not be saved.
|
should not be saved.
|
||||||
|
|
||||||
It will be called as (all arguments passed by keyword):
|
It will be called as (all arguments passed by keyword)::
|
||||||
|
|
||||||
hook(path=path, model=model, contents_manager=self)
|
hook(path=path, model=model, contents_manager=self)
|
||||||
|
|
||||||
model: the model to be saved. Includes file contents.
|
- model: the model to be saved. Includes file contents.
|
||||||
modifying this dict will affect the file that is stored.
|
Modifying this dict will affect the file that is stored.
|
||||||
path: the API path of the save destination
|
- path: the API path of the save destination
|
||||||
contents_manager: this ContentsManager instance
|
- contents_manager: this ContentsManager instance
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
def _pre_save_hook_changed(self, name, old, new):
|
def _pre_save_hook_changed(self, name, old, new):
|
||||||
|
Loading…
Reference in New Issue
Block a user