ui.carousel
Carousel
Slides that snap into place under a swipe, the wheel or the arrows — one at a time, several at once, or on autoplay.A photo gallery
Every child is a slide. Arrows and dots appear on their own, and the arrows switch off at either end.Several at once
per_view= takes a number, or one per breakpoint: one card on a phone, three on a desktop. With more than one in view, the dots step aside.Announcements on autoplay
autoplay=4 turns the page every four seconds, and stops for good the moment the reader touches it.An onboarding tour
The buttons drive the carousel with .prev() and .next(); each slide change calls a Python handler that records how far the user got.1 of 4 screens seen