awacke1 commited on
Commit
bc2a4d6
·
1 Parent(s): ceb0e6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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.components.v1.iframe(src, width=1280, height=None, scrolling=True)
 
 
 
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: