Skip to content

Commit bffc13a

Browse files
committed
Fix Tensorboard frame height on Jupyter Notebooks
1 parent 4e17ba3 commit bffc13a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jupyter/utils/addons/apply.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ fi
3131

3232
curl -o "$static_dir/pf.css" "$pf_url"
3333

34+
# Patternfly implemented some changes, setting the default height on iframe objects to "auto", which
35+
# excluded the default 800px height of Tensorboard's IFrame object. This stylesheet will simply search
36+
# for all IFrames that contain `tensorboard` on its URL and add a default height of 800px to it, and only
37+
# on it.
38+
echo "iframe[id*=\"tensorboard\"] { height: 800px !important }" >> "$static_dir/pf.css"
39+
3440
head_content=$(tr -d '\n' <"$head_file" | sed 's/@/\\@/g')
3541
body_content=$(tr -d '\n' <"$body_file" | sed 's/@/\\@/g')
3642

0 commit comments

Comments
 (0)