This is a development version (9.14.0.dev) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.14.0.dev / IPython / lib / display / FileLinks / __init__

function

IPython.lib.display:FileLinks.__init__

source: /IPython/lib/display.py :451

Signature

def   __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 )

Summary

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

Extended Summary

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.

Aliases

  • IPython.display.FileLinks.__init__