Skip to content

Commit c44df83

Browse files
author
maxwasserman
committed
Added comment explaining the use of the scoped attribute.
1 parent 4520415 commit c44df83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/io/formats/format.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,9 @@ def write_tr(self, line, indent=0, indent_delta=4, header=False,
11321132
self.write('</tr>', indent)
11331133

11341134
def write_style(self):
1135+
# We use the "scoped" attribute here so that the desired
1136+
# style properties for the data frame are not then applied
1137+
# throughout the entire notebook
11351138
template_first = """\
11361139
<style scoped>"""
11371140
template_last = """\

0 commit comments

Comments
 (0)