🧶 𝗪𝗲𝗯/Streamlit

    [Streamlit] config.toml 로 theme 설정하기

    theme 설정 기본 색상들 보시면 오른쪽 radio 버튼을 보면 주변이 빨간색으로 표시되어 있습니다. 왼쪽 사이드바 색상도 회색으로 설정되어 있습니다. 이는 streamlit default color 가 저렇게 설정되어 있기 때문입니다. 기본을 사용하는 것도 좋지만, 종종 주제에 맞춰 색을 맞출 필요가 있습니다. 그럴 때 config.toml 을 이용하면 색을 변경할 수 있습니다. .streamlit 폴더 만들기 우선 .streamlit 폴더를 만듭니다. 그리고 아래에 config.toml 파일을 위치시켜 줍니다. 이렇게 해야 에러없이 적용이 됩니다. config.toml # config.toml 파일 [theme] primaryColor="green" # theme secondaryBackground..

    [Streamlit] html 태그 넣기

    html 태그 넣기 import streamlit as st 우선 streamlit 을 선언합니다. st 라는 alias를 사용하겠습니다. (streamlit에서 권장) html = """ 안녕하세요 """ 만들고싶은 html 태그를 문자열로 만들어줍니다. style을 인라인 형태로 적용할 수 있습니다. st.markdown(html, unsafe_allow_html=True) st.markdown api 를 이용하면 html 태그를 넣을 수 있습니다. unsafe_allow_html 을 True로 해줘야 합니다. 결과 화면 다음과 같이 html 태그가 streamlit에 적용된 것을 확인할 수 있습니다. + 참고 document https://docs.streamlit.io/library/api-ref..

    [Streamlit] 설치 및 시작하기 + 배포

    개요 공식 사이트 https://streamlit.io/ Streamlit • The fastest way to build and share data apps Streamlit is an open-source app framework for Machine Learning and Data Science teams. Create beautiful web apps in minutes. streamlit.io streamlit 공식 사이트 입니다. 갤러리에 들어가시면 다양한 예제들을 만나보실 수 있습니다. A faster way to build and share data apps Streamlit turns data scripts into shareable web apps in minutes. All in pu..