File size: 314 Bytes
91e0a48 e8ef7ba 91e0a48 3430dd0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import streamlit as st
from streamlit_ace import st_ace
code= "def f1(x): return str(x * 3)"
exec(code)
st.write(f1(3))
content = st_ace(language="python")
st.write(len(content.splitlines()))
exec(content)
code= "def f1(x): return str(x * 3)"
exec(code)
st.text(content)
st.write(f1(3))
st.write(test_fun(3))
|