IPython 8.4.0 Pypi GitHub Homepage
Other Docs
__init__(self, path, url_prefix='', included_suffixes=None, result_html_prefix='', result_html_suffix='<br>', notebook_display_formatter=None, terminal_display_formatter=None, recursive=True)

included_suffixes

included_suffixes

notebook_display_formatter

notebook_display_formatter

terminal_display_formatter

terminal_display_formatter

Formatter functions must be of the form:

f(dirname, fnames, included_suffixes)

dirname

dirname

fnames

fnames

included_suffixes

included_suffixes

recursive

recursive

The function should return a list of lines that will be printed in the notebook (if passing notebook_display_formatter) or the terminal (if passing terminal_display_formatter). This function is iterated over for each directory in self.path. Default formatters are in place, can be passed here to support alternative formatting.

See FileLink for the path , url_prefix , result_html_prefix and result_html_suffix parameters.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /IPython/lib/display.py#448
type: <class 'function'>
Commit: