Options
Specifies which writer to use when constructing notebooks.
Option | Description |
---|---|
"all" (default) | compile complete notebooks which include markdown cells and code blocks |
"code" | compile notebooks that only contain the code blocks . |
conf.py
usage:
jupyter_conversion_mode = "all"
Specify path to _static folder.
conf.py
usage:
jupyter_static_file_path = ["source/_static"]
Add a header block to every generated notebook by specifying an RST file
conf.py
usage:
jupyter_header_block = ["source/welcome.rst"]
Specify default language for collection of RST files
conf.py
usage:
jupyter_default_lang = "python3"
Specify any language synonyms.
This will be used when parsing code blocks. For example, python and ipython have slightly different highlighting directives but contain code that can both be executed on the same kernel
conf.py
usage:
jupyter_lang_synonyms = ["pycon", "ipython"]
Specify kernel information for the jupyter notebook metadata.
This is used by jupyter to connect the correct language kernel and is required in conf.py
.
conf.py
usage:
jupyter_kernels = {
"python3": {
"kernelspec": {
"display_name": "Python",
"language": "python3",
"name": "python3"
},
"file_extension": ".py",
},
}
See Issue 196
write time and date information at the top of each notebook as notebook metadata
Note
This option is slated to be deprecated
An dict-type object that is used by dask to control execution
This option needs to be reviewed
Drop code-blocks
that include :class: solution
Values |
---|
False (default) |
True |
This option needs to be reviewed
Drop code-blocks` that include
:class: test.. list-table:: :header-rows: 1 * - Values * - False (**default**) * - True .. TODO:: This option needs to be reviewed jupyter_ignore_no_execute: -------------------------- .. list-table:: :header-rows: 1 * - Values * - False (**default**) * - True When constructing notebooks this option can be enabled to ignore `:class: no-execute` for `code-blocks`. This is useful for `html` writer for pages that are meant to fail but shouldn't be included in `coverage` tests.
conf.pyusage: .. code-block:: python jupyter_ignore_no_execute = True jupyter_ignore_skip_test ------------------------ When constructing notebooks this option can be enabled to ignore `:class: skip-test` for `code-blocks`. .. list-table:: :header-rows: 1 * - Values * - False (**default**) * - True
conf.pyusage: .. code-block:: python jupyter_ignore_skip_test = True jupyter_allow_html_only ----------------------- Enable this option to allow
.. only:: htmlpass through to the notebooks. .. list-table:: :header-rows: 1 * - Values * - False (**default**) * - True
conf.pyusage: .. code-block:: python jupyter_allow_html_only = True jupyter_target_html ------------------- Enable this option to generate notebooks that favour the inclusion of
htmlin notebooks to support more advanced features. .. list-table:: :header-rows: 1 * - Values * - False (**default**) * - True Supported Features: #. html based table support #. image inclusion as
htmlfigures
conf.pyusage: .. code-block:: python jupyter_target_html = True jupyter_images_markdown ----------------------- Force the inclusion of images as native markdown .. list-table:: :header-rows: 1 * - Values * - False (**default**) * - True .. note:: when this option is enabled the `:scale:` option is not supported in RST.
conf.pyusage: .. code-block:: python jupyter_images_markdown = True jupyter_dependencies -------------------- Specify file or directory level dependencies
conf.pyusage: .. code-block:: python jupyter_dependencies = { <dir> : ['file1', 'file2'], {<dir>}/<file.rst> : ['file1'] } this allows you to specify a companion data file for a given
RSTdocument and it will get copied through sphinx to the
_build`` folder.