Skip to main content

🐻‍❄️ streamlit-rerun-bear

Turns every Streamlit rerun into a polar bear dash across your screen.

A lightweight Streamlit custom component (CCv2) that animates a polar bear running along the bottom of the page on every rerun — left to right, then right to left, alternating each time.

demo


Installation

pip install streamlit-rerun-bear

Quick Start

import streamlit as st
from streamlit_rerun_bear import streamlit_rerun_bear

streamlit_rerun_bear()

st.button("🔄 Rerun")

That's it. Every time the app reruns, a polar bear dashes across the bottom of the screen.


How It Works

  • Rendered on a position: fixed canvas that stays pinned to the bottom of the viewport — even while scrolling.
  • pointer-events: none ensures the bear never blocks clicks or interactions.
  • Direction alternates on each rerun (left → right → left → …).
  • If a rerun happens mid-animation, the bear picks up from where it left off.

Requirements

  • Python ≥ 3.9
  • Streamlit ≥ 1.40.0
  • Pillow ≥ 9.0.0
  • NumPy ≥ 1.24.0

License

MIT

Metadata

Release files for streamlit-rerun-bear 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-rerun-bear 0.1.2
File Size Uploaded
streamlit_rerun_bear-0.1.2.tar.gz 976.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-rerun-bear 0.1.2
File Interpreter ABI Platform
streamlit_rerun_bear-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 2.0 MB

Release files / streamlit_rerun_bear-0.1.2.tar.gz

Download URL streamlit_rerun_bear-0.1.2.tar.gz
Size 976.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b2eb7c762ab3fb67b3f2091a8146dba76f2995b7e0b62a13ea12553b2628abd9
BLAKE2b-256 checksum
How to use checksums
91b09d99b82568b4c68d857f131974fa98dd6c806b1e9c0c0128f9f886f68b43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / streamlit_rerun_bear-0.1.2-py3-none-any.whl

Download URL streamlit_rerun_bear-0.1.2-py3-none-any.whl
Size 975.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f26e60b94f0e1f4a7010a822c51fcf198bbefb33d8f989c10acdb947e16532e
BLAKE2b-256 checksum
How to use checksums
0dbe4b46642e7a5e0dfae28ad6801108b1e9a41bab638bec0a7f5f16e5979264
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page