We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1d60c7 commit c1ce2c7Copy full SHA for c1ce2c7
1 file changed
cycler.py
@@ -335,7 +335,11 @@ def __repr__(self):
335
def _repr_html_(self):
336
# an table showing the value of each key through a full cycle
337
output = "<table>"
338
- sorted_keys = sorted(self.keys)
+ try:
339
+ sorted_keys = sorted(self.keys)
340
+ except TypeError:
341
+ # We do not insist that the keys be sortable.
342
+ sorted_keys = self.keys
343
for key in sorted_keys:
344
output += "<th>{key!r}</th>".format(key=key)
345
for d in iter(self):
0 commit comments