Spaces:
Running
Running
Set style of iframe in bokeh2iframe()
Browse files- analyze_winscore.py +6 -3
analyze_winscore.py
CHANGED
|
@@ -39,7 +39,7 @@ def bokeh2fullhtml(obj):
|
|
| 39 |
|
| 40 |
return bokeh_html
|
| 41 |
|
| 42 |
-
def bokeh2iframe(obj):
|
| 43 |
import html
|
| 44 |
|
| 45 |
srcdoc = bokeh2fullhtml(obj)
|
|
@@ -48,8 +48,11 @@ def bokeh2iframe(obj):
|
|
| 48 |
return f'''
|
| 49 |
<iframe
|
| 50 |
srcdoc="{srcdoc}"
|
| 51 |
-
width="100%" height="
|
| 52 |
-
style="
|
|
|
|
|
|
|
|
|
|
| 53 |
></iframe>
|
| 54 |
'''
|
| 55 |
|
|
|
|
| 39 |
|
| 40 |
return bokeh_html
|
| 41 |
|
| 42 |
+
def bokeh2iframe(obj, height=820):
|
| 43 |
import html
|
| 44 |
|
| 45 |
srcdoc = bokeh2fullhtml(obj)
|
|
|
|
| 48 |
return f'''
|
| 49 |
<iframe
|
| 50 |
srcdoc="{srcdoc}"
|
| 51 |
+
width="100%" height="{height}"
|
| 52 |
+
style="
|
| 53 |
+
border: 1px solid var(--border-color-primary);
|
| 54 |
+
border-radius: var(--block-radius);
|
| 55 |
+
"
|
| 56 |
></iframe>
|
| 57 |
'''
|
| 58 |
|