Skip to content

Progress Bar

Use progress bars to show the completion status of long-running operations.

Basic

Set mode='progress' to show a progress bar.

view(box('Swapping time and space...', mode='progress'))

Screenshot

Set caption

Set caption= to show a caption below the bar

view(box(
    'Swapping time and space',
    mode='progress',
    caption='Spinning violently around the y-axis...',
))

Screenshot

Set completion

Set value= to a number between 0 and 1 to show a completion status.

view(box(
    'Swapping time and space',
    mode='progress',
    caption='Spinning violently around the y-axis...',
    value=0.75
))

Screenshot