jleibs commited on
Commit
a853709
1 Parent(s): 35b4ca7

Fit the size of the window better

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,9 +52,9 @@ def build_color_grid(x_count=10, y_count=10, z_count=10, twist=0):
52
  return ColorGrid(positions.T, colors.T.astype(np.uint8))
53
 
54
 
55
- def html_template(rrd, width=1470, height=900, app_url="https://app.rerun.io"):
56
  encoded_url = urllib.parse.quote(rrd)
57
- return f"""<iframe width="{width}" height="{height}" src="{app_url}?url={encoded_url}" frameborder="0" allowfullscreen=""></iframe>"""
58
 
59
  def show_cube(x, y, z):
60
  rr.init("my data")
 
52
  return ColorGrid(positions.T, colors.T.astype(np.uint8))
53
 
54
 
55
+ def html_template(rrd, app_url="https://app.rerun.io"):
56
  encoded_url = urllib.parse.quote(rrd)
57
+ return f"""<div style="width:100%; height:70vh;"><iframe style="width:100%; height:100%;" src="{app_url}?url={encoded_url}" frameborder="0" allowfullscreen=""></iframe></div>"""
58
 
59
  def show_cube(x, y, z):
60
  rr.init("my data")