tvst / st-execbox

Apache License 2.0
11 stars 3 forks source link

key err #1

Open egg-egg-egg-egg opened 3 months ago

egg-egg-egg-egg commented 3 months ago

If 'key' is not set, the following error occurs "raise DuplicateWidgetID( streamlit.errors.DuplicateWidgetID: There are multiple identical st.streamlit_ace.streamlit_ace widgets with the same generated key.

When a widget is created, it's assigned an internal key based on its structure. Multiple widgets with an identical structure will result in the same internal key, which causes this error.

To fix this error, please pass a unique key argument to st.streamlit_ace.streamlit_ace."

egg-egg-egg-egg commented 3 months ago

The example code: "" a = 10 b = 20 st.write(a + b) " cannot be executed. "The import statement 'import streamlit as st' is mandatory in this code."