Skip to content

Implement Caching object to support running code blocks only once#1

Merged
tvst merged 27 commits intostreamlit:developfrom
domoritz:once
Aug 24, 2019
Merged

Implement Caching object to support running code blocks only once#1
tvst merged 27 commits intostreamlit:developfrom
domoritz:once

Conversation

@domoritz
Copy link
Copy Markdown
Contributor

@domoritz domoritz commented Aug 24, 2019

import streamlit as st
import time

c = st.Cache()
if c:
    time.sleep(2)
    c.my_dict = {
        'a': 42
    }

st.write(c.my_dict)

@domoritz domoritz requested review from treuille and tvst August 24, 2019 01:30
sfc-gh-aamadhavan added a commit that referenced this pull request Nov 6, 2025
sfc-gh-aamadhavan added a commit that referenced this pull request Nov 7, 2025
sfc-gh-aamadhavan added a commit that referenced this pull request Nov 9, 2025
sfc-gh-aamadhavan added a commit that referenced this pull request Nov 12, 2025
sfc-gh-aamadhavan added a commit that referenced this pull request Nov 13, 2025
lukasmasuch added a commit that referenced this pull request Mar 31, 2026
- Fix positional column key lookup for button_click_widgets (#1)
  The lookup now checks both column name and positional key (_pos:<index>)
  to support ButtonColumn configured with integer column keys

- Use readableColor for primary button text contrast (#3)
  Ensures sufficient contrast when theme accent color is light (e.g. yellow)

- Close menu on scroll instead of blocking page scrolling (#4)
  More user-friendly behavior that allows page interaction while keeping
  menu aligned with its anchor

- Add clarifying comments for coordinate system (#2) and
  character width estimate (#6)

- Add ButtonColumn typing test (#7)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants