Giter Club home page Giter Club logo

streamlit-float's Introduction

Hi there, I'm Anas 👋

A little about me...

  • 🔭 I’m currently exploring the exciting realms of React and UI design, combining my passion for frontend development with creating beautiful and intuitive user interfaces.
  • 🌱 I’m currently learning about the various ways other creative minds are using threejs to create fresh and engaging user experiences.
  • 👯 I’m looking to collaborate on further developing rhp, a charting component library built entirely in React and designed with web devs in mind.
  • 💬 Ask me about designing and developing in-house and open-source tools for developers and scientists alike, with a focus on Data Visualization 📊.

Languages and tools I have used before (or am currently using) include...

Backend

Python Java C++ Node.js PHP Octave

Frontend

HTML5 CSS3 SASS TailwindCSS JavaScript TypeScript React Threejs Next JS Astro

Packaging

NPM RollupJS Webpack


My Github stats...

bouzidanas's Stats

bouzidanas's Streak

bouzidanas's Top Languages

streamlit-float's People

Contributors

bouzidanas avatar lkdd-ao avatar socvest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

streamlit-float's Issues

切换数据时内容未刷新

def news_details_button(n, container):
    """新闻详情弹窗"""
    # Button that opens the dialog
    with container:
        if st.button(":notebook:", key=f"data{n}"):
            st.session_state.news_details_show = n
            st.experimental_rerun()
    # Create Float Dialog container
    dialog_container = float_dialog(show=st.session_state.news_details_show == n,
                                    background="#FFFFFF", transition=0)

    # Add contents of Dialog including button to close it
    with dialog_container:
        info = st.session_state.event_info_lis[n]
        print(f"info:{info}")
        st.markdown(f"<h3>事件信息{n}</h3>", unsafe_allow_html=True)
        if info["dtype"] == "audio":
            st.audio(base642audio(info["audio"]), format=f"audio/{info['suffix']}")
        html = f'<textarea rows="10" cols="50">{info["text"]}</textarea>'
        st.markdown(html, unsafe_allow_html=True)  # 这里的t[1]为用例名称
        cols = st.columns(2)
        cols[0].button("删除", key=f"del{n}", on_click=del_btn_click(n))
        if cols[1].button("关闭", key=f"close{n}"):
            # ...Handle input data here...
            st.session_state.news_details_show = None
            st.experimental_rerun()

我用float_dialog构建了一个信息详情页的弹窗,通过ID来控制访问哪份数据,这个使用起来是正常的,但当我切换数据时(st.session_state.event_info_lis会整体替换),再使用相同的ID访问数据,页面上会出现切换前的数据,但后台打印看数据是正常。猜测可能是前端缓存了数据,这个应该如何处理?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.