【问题标题】:How can I modify the selectbox column length in streamlit?如何修改streamlit中的选择框列长度?
【发布时间】:2021-12-29 08:06:09
【问题描述】:

我有以下代码:

import streamlit as st
import subprocess

git_output = subprocess.run(['git', 'branch', '-a'], cwd='/home/demo', capture_output=True, text=True).stdout

br_list = git_output.split('\n')

select = st.sidebar.selectbox('Option', list(filter(lambda k: 'remotes/origin' in k and '1v' in k, br_list)))

问题是 streamlit 复选框将字符限制为最多 34 个,而我在列表中的结果是每个大约 60 个。如何修改它,使选择框更长并显示整个字符串?

【问题讨论】:

    标签: python python-3.x streamlit


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-28
      • 2021-06-17
      • 1970-01-01
      • 2015-08-11
      • 1970-01-01
      • 2015-11-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多