Sketch & streamlit

Hi guys,
I have been using the sketch library in JupyterLab without any issues (https://pypi.org/project/sketch/). However, when I tried to use it in Streamlit, I encountered an error that says:
“RuntimeError: There is no current event loop in thread ‘ScriptRunner.scriptThread’.”

Hi @arri,

Thanks for sharing your question with the community! Check out our guidelines on how to post an effective question here – in particular, please update your post to include a code snippet so we can try to reproduce the error

Hi all, I was trying to work with this library on the streamlit cloud, but the import doesn’t seem to succeed correctly.

import sketch
#some code

Can you help me figure out how to fix this error?

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.