Spaces:
Running
Running
Fit the size of the window better
Browse files
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,
|
56 |
encoded_url = urllib.parse.quote(rrd)
|
57 |
-
return f"""<
|
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")
|