Python/Streamlit

Streamlit) ๋Œ€์‹œ๋ณด๋“œ์˜ ๊ทธ๋ž˜ํ”„์— ํ•œ๊ธ€ ๋‚˜์˜ค๊ฒŒ ํ•˜๋Š” ์ฝ”๋“œ

567Rabbit 2024. 5. 3. 09:59

 

https://luvris2.tistory.com/119

 

AWS EC2 - Streamlit ๋Œ€์‹œ๋ณด๋“œ์— ํ•œ๊ธ€ ์ถœ๋ ฅํ•˜๊ธฐ (ํ•œ๊ธ€ ๊นจ์ง)

์ด ๊ธ€์€ ๋ฆฌ๋ˆ…์Šค ํ•œ๊ธ€ ํฐํŠธ๊ฐ€ ์„ค์น˜๋˜์–ด์žˆ๋‹ค๋Š” ๊ฐ€์ •ํ•˜์— ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. ์•„๋ž˜์˜ ํฌ์ŠคํŒ…์œผ๋กœ ์ด๋™ํ•˜๋ฉด ํ•œ๊ธ€ ํฐํŠธ๋ฅผ ์„ค์น˜ํ•˜๋Š” ์ ˆ์ฐจ๊ฐ€ ๊ธฐ์žฌ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค. https://luvris2.tistory.com/118 ๋ฆฌ๋ˆ…์Šค - ํ•œ๊ธ€ ํฐํŠธ ์„ค

luvris2.tistory.com

์„ค์น˜๋Š” ์œ„ ๋ธ”๋กœ๊ทธ๋ฅผ ์ฐธ์กฐํ•œ๋‹ค

 

# ๊ทธ๋ž˜ํ”„์— ํ•œ๊ธ€ ๋‚˜์˜ค๊ฒŒ ํ•˜๋Š” ์ฝ”๋“œ
import platform
import matplotlib.pyplot as plt
from matplotlib import font_manager, rc
plt.rcParams['axes.unicode_minus'] = False
if platform.system() == 'Linux':
    rc('font', family='NanumGothic')