File: filters.rst

package info (click to toggle)
nbconvert 5.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,360 kB
  • sloc: python: 6,192; makefile: 198
file content (67 lines) | stat: -rw-r--r-- 1,352 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Filters
=======

Filters are for use with the :class:`~nbconvert.exporters.TemplateExporter` exporter.
They provide a way for you transform notebook contents to a particular format depending
on the template you are using. For example, when converting to HTML, you would want to
use the :func:`~nbconvert.filters.ansi2html` function to convert ANSI colors (from
e.g. a terminal traceback) to HTML colors.

.. seealso::

   :doc:`/api/exporters`
     API documentation for the various exporter classes

.. module:: nbconvert.filters

.. autofunction:: add_anchor

.. autofunction:: add_prompts

.. autofunction:: ansi2html

.. autofunction:: ansi2latex

.. autofunction:: ascii_only

.. autofunction:: citation2latex

.. autofunction:: comment_lines

.. autofunction:: escape_latex

.. autoclass:: DataTypeFilter

.. autofunction:: get_lines

.. autofunction:: convert_pandoc

.. autoclass:: Highlight2HTML

.. autoclass:: Highlight2Latex

.. autofunction:: html2text

.. autofunction:: indent

.. autofunction:: ipython2python

.. autofunction:: markdown2html

.. autofunction:: markdown2latex

.. autofunction:: markdown2rst

.. autofunction:: path2url

.. autofunction:: posix_path

.. autofunction:: prevent_list_blocks

.. autofunction:: strip_ansi

.. autofunction:: strip_dollars

.. autofunction:: strip_files_prefix

.. autofunction:: wrap_text