vstack#
- mqr.nbtools.vstack(*args, margin='5px 10px 5px 10px', justify_content='start', justify_items='start', align_content='start', align_items='start')#
Vertically stack the html, markdown or string representation of args.
The args will be stacked in order from top to bottom, and converted like this:
if the arg has the attribute __repr__, then its output is used pre-formatted,
if the arg has the attribute _repr_html_, then its output is used,
if the arg is a string, then it is treated as markdown and converted to HTML,
otherwise, the arg’s default string conversion is used.
- Parameters:
- args
Elements to stack vertically.
- marginstr, optional
Set in the style attribute of a div wrapping elements in this stack (excluding lines, which have a fixed 5px margin). Give values in the order, eg. “5px 10px 5px 10px” (top right bottom left).
- justify_content, justify_items, align_content, align_itemsstr
Set in the style attribute of the flexbox containing this stack.
- Returns:
- IPython.display.HTML
Stacked elements which can be directly displayed in jupyter.