Is it possible to use st.write and st.code in one line? I’d like to provide some information with st.code, because I’d like to have to copy button. But i’d like to label the information because st.code has no label. The label I’'d like to print st.write.
This doesn’t work:
'hello', st.code("world")
I tried columns. But then the rows aren’t aligned.
for _ in range(10):
with st.container():
c1, c2, c3 = st.columns((1,4,9)) # 3rd col = blank for spacing
c1.write("") # vertical filler
c1.write('hello')
c2.code("world")