“cmd.refresh” causes the scene to be redrawn as soon as the operating system allows it to be done.
cmd.refresh()
def refresh():
refresh | cmd.rebuild | api