You are viewing an older version (9.10.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.10.0 / IPython / utils / text / marquee

function

IPython.utils.text:marquee

source: /IPython/utils/text.py :320

Signature

def   marquee ( txt : str = '' width : int = 78 mark : str = * )  →  str

Summary

Return the input string centered in a 'marquee'.

Examples

:: In [16]: marquee('A test',40) Out[16]: '**************** A test ****************' In [17]: marquee('A test',40,'-') Out[17]: '---------------- A test ----------------' In [18]: marquee('A test',40,' ') Out[18]: ' A test '

Aliases

  • IPython.utils.text.marquee