lvwerra HF staff commited on
Commit
a73b1a6
·
verified ·
1 Parent(s): dfa06cf

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +11 -1
utils.py CHANGED
@@ -72,10 +72,20 @@ def parse_exec_result_nb(execution):
72
 
73
 
74
  system_template = """\
 
 
 
 
 
 
 
 
 
 
75
  <details>
76
  <summary style="display: flex; align-items: center;">
77
  <div class="alert alert-block alert-info" style="margin: 0; width: 100%;">
78
- <b>System:</b>
79
  </div>
80
  </summary>
81
  <div class="alert alert-block alert-info">
 
72
 
73
 
74
  system_template = """\
75
+ <style>
76
+ details > summary .arrow {
77
+ display: inline-block;
78
+ transition: transform 0.2s;
79
+ }
80
+ details[open] > summary .arrow {
81
+ transform: rotate(90deg);
82
+ }
83
+ </style>
84
+
85
  <details>
86
  <summary style="display: flex; align-items: center;">
87
  <div class="alert alert-block alert-info" style="margin: 0; width: 100%;">
88
+ <b>System: <span class="arrow">▶</span></b>
89
  </div>
90
  </summary>
91
  <div class="alert alert-block alert-info">