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):
4848        return  super ().__call__ (obj )
4949
5050
51- class  E2BDictFormatter (JSONFormatter ):
51+ class  E2BJSONFormatter (JSONFormatter ):
5252    def  __call__ (self , obj ):
5353        # Figure object is for some reason removed on execution of the cell, 
5454        # so it can't be used in type_printers or with top-level import 
5555
5656        if  isinstance (obj , dict ):
5757            return  obj , {"expanded" : True }
58+         if  isinstance (obj , list ):
59+             return  obj , {"expanded" : True }
5860        return  super ().__call__ (obj )
5961
6062
@@ -66,6 +68,6 @@ def __call__(self, obj):
6668    parent = ip .display_formatter 
6769)
6870
69- ip .display_formatter .formatters ["application/json" ] =  E2BDictFormatter (
71+ ip .display_formatter .formatters ["application/json" ] =  E2BJSONFormatter (
7072    parent = ip .display_formatter 
7173)
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments