Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,10 @@ def SetIframeURL(option_selected):
|
|
23 |
src='https://algassert.com/quirk#circuit={%22cols%22:[[%22H%22],[%22Bloch%22],[%22Measure%22]]}'
|
24 |
|
25 |
# Render iframe contents
|
26 |
-
st.
|
|
|
|
|
|
|
27 |
|
28 |
# query params exist
|
29 |
try:
|
|
|
23 |
src='https://algassert.com/quirk#circuit={%22cols%22:[[%22H%22],[%22Bloch%22],[%22Measure%22]]}'
|
24 |
|
25 |
# Render iframe contents
|
26 |
+
st.set_page_config(layout="wide")
|
27 |
+
width = st.sidebar.slider("Width", 200, 1500, 600, 100)
|
28 |
+
height = st.sidebar.slider("Height", 200, 1500, 300, 100)
|
29 |
+
st.components.v1.iframe(src, width, height, scrolling=True)
|
30 |
|
31 |
# query params exist
|
32 |
try:
|