test_streamlit / app.py
zpbrent's picture
Update app.py
262bc4c
raw
history blame
266 Bytes
import streamlit as st
from streamlit.components.v1 import html
# Define your javascript
my_js = """
alert("Hola mundo");
"""
# Wrapt the javascript as html code
my_html = f"<script>{my_js}</script>"
# Execute your app
st.title("Javascript example")
html(my_html)