What's New in Streamlit? • Improved Caching, Chart Colors & more

Поділитися
Вставка
  • Опубліковано 4 жов 2024

КОМЕНТАРІ • 16

  • @alhuFR
    @alhuFR Рік тому +1

    Tant de choses que je ne savais pas...! :D
    (Les icones sur les error/warning

    • @andfanilo
      @andfanilo  Рік тому +2

      Moi aussi j'avais loupé cette feature XD thanks for watching!

  • @whitename7764
    @whitename7764 Рік тому

    Wow, amazing

    • @andfanilo
      @andfanilo  Рік тому

      Thank you for watching :) hope to see you around!

    • @whitename7764
      @whitename7764 Рік тому

      @@andfanilo of course

  • @tylerjrichards_ds
    @tylerjrichards_ds Рік тому +2

    I didn't even know about the websocket headers argument and I work at streamlit lol

    • @andfanilo
      @andfanilo  Рік тому

      I need to integrate that into the video somehow 😆

  • @shamaldesilva9533
    @shamaldesilva9533 Рік тому +2

    Awesome video Fanilo 🔥🔥 . One quick question , do you know about the authentication options in streamlit ? Am trying to get my company to use streamlit instead of powerBI and the biggest hurdle in doing so is the lack proper authentication support. Here are some of the use cases that i feel like streamlit is lacking ,
    1. Streamlit cloud supported user authentication and authorization
    2. User wise data display ( based on the users the data displayed will change )
    3. Assign user groups ( employee , manager , directors ect )
    Really hoping that you could help me out with this by creating a video 🥺.
    again thanks for the great content. 😇✌️

    • @andfanilo
      @andfanilo  Рік тому +2

      Hello Shamal, nice to see such a use case!
      Doing this outside of Streamlit Cloud, I was considering making such a video but most of the authentication methods I have seen in the community were very manual (for example auth0.com/blog/streamlit-user-and-api-authentication/ using Auth0 and components to drive authentication) and my current impression is it's on a very case-to-case basis, depending on how your company is managing user accesses & user groups.
      If you rely solely on Streamlit Cloud, you can build a private Github app, and uniquely authorize users to access the app on a per-email basis (docs.streamlit.io/streamlit-cloud/get-started/share-your-app#sharing-private-apps) or by adding them to the Github private repository/organization. Then with st.experimental_user (docs.streamlit.io/library/api-reference/personalization) you can get the email of the logged-in user and display user-wise data accordingly. There's no user-group data in Streamlit Cloud though, that's something you may have to get somewhere else. Also that means it's on you to sync the users authorised to access the app and users in your organization's database.
      Hope it was clear!
      I'm pushing this to the dev team and see where it goes from there! Don't hesitate to add more info
      Have a nice day!
      Fanilo

    • @dkly499ssdgh
      @dkly499ssdgh Рік тому +1

      @@andfanilo I would also like to see a video about it. So far, I have also had more headaches with controlling users and roles to organize access within a local user group. Every impression is often helpful. By the way, you're doing a great job with your videos!

    • @andfanilo
      @andfanilo  Рік тому +1

      FYI, I have transferred this to the Streamlit team and we hope do build a set of documentation for this. Stay tuned, I'll make a community post when that happens ;)

  • @Carpaccio_Eater
    @Carpaccio_Eater 9 місяців тому

    How can I preview the app layout on vscode, like you did in the video?

    • @andfanilo
      @andfanilo  9 місяців тому

      It’s actually my web browser well aligned on the right of vscode. I did resize some vscode components to achieve that alignment gist.github.com/andfanilo/ae99aed9c454a46c1dbfe6a0b9fa0012

  • @jackychan4640
    @jackychan4640 Рік тому

    Hey, I have problem to install pandas to read the CVS file ? Any other module is available for parsing the CVS. Your help is appreciated 👍

    • @andfanilo
      @andfanilo  Рік тому +1

      Hello Jacky. Do you mean CSV file? You could use the Python csv module (docs.python.org/3/library/csv.html) to parse the file into an array of tuples of data...but that is pretty low-level
      What issues do you have with installing Pandas?

    • @jackychan4640
      @jackychan4640 Рік тому +1

      @@andfanilo thanks, the problem solved