idolezal commited on
Commit
88d1ada
·
1 Parent(s): 24ab55a

Set style of iframe in bokeh2iframe()

Browse files
Files changed (1) hide show
  1. 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="450"
52
- style="border:none;"
 
 
 
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