File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,15 @@ def __call__(self, obj):
48
48
return super ().__call__ (obj )
49
49
50
50
51
- class E2BDictFormatter (JSONFormatter ):
51
+ class E2BJSONFormatter (JSONFormatter ):
52
52
def __call__ (self , obj ):
53
53
# Figure object is for some reason removed on execution of the cell,
54
54
# so it can't be used in type_printers or with top-level import
55
55
56
56
if isinstance (obj , dict ):
57
57
return obj , {"expanded" : True }
58
+ if isinstance (obj , list ):
59
+ return obj , {"expanded" : True }
58
60
return super ().__call__ (obj )
59
61
60
62
@@ -66,6 +68,6 @@ def __call__(self, obj):
66
68
parent = ip .display_formatter
67
69
)
68
70
69
- ip .display_formatter .formatters ["application/json" ] = E2BDictFormatter (
71
+ ip .display_formatter .formatters ["application/json" ] = E2BJSONFormatter (
70
72
parent = ip .display_formatter
71
73
)
You can’t perform that action at this time.
0 commit comments