{ } Raw JSON

bundles / IPython 9.13.0 / IPython / lib / display / FileLinks / _get_display_formatter

function

IPython.lib.display:FileLinks._get_display_formatter

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

Signature

def   _get_display_formatter ( self dirname_output_format fname_output_format fp_format fp_cleaner = None )

Summary

generate built-in formatter function

Extended Summary

this is used to define both the notebook and terminal built-in

formatters as they only differ by some wrapper text for each entry

dirname_output_format: string to use for formatting directory

names, dirname will be substituted for a single "%s" which must appear in this string

fname_output_format: string to use for formatting file names,

if a single "%s" appears in the string, fname will be substituted if two "%s" appear in the string, the path to fname will be substituted for the first and fname will be substituted for the second

fp_format: string to use for formatting filepaths, must contain

exactly two "%s" and the dirname will be substituted for the first and fname will be substituted for the second

Aliases

  • IPython.display.FileLinks._get_display_formatter