File: filters.rst

package info (click to toggle)
nbconvert 7.16.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,044 kB
  • sloc: python: 8,394; makefile: 199; javascript: 2
file content (69 lines) | stat: -rw-r--r-- 1,363 bytes parent folder | download
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
68
69
.. highlight:: none

Filters
=======

Filters are for use with the ``nbconvert.exporters.templateexporter.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 ``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