@@ -525,7 +525,7 @@ def displayhook(self, plain_text, rich_output):
525525 elif isinstance (rich_output , OutputLatex ):
526526 return ({'text/latex' : rich_output .latex .get_str (),
527527 'text/plain' : plain_text .text .get_str (),
528- }, {})
528+ }, {})
529529 elif isinstance (rich_output , OutputHtml ):
530530 data = {'text/html' : rich_output .html .get_str (),
531531 'text/plain' : plain_text .text .get_str ()}
@@ -535,29 +535,29 @@ def displayhook(self, plain_text, rich_output):
535535 elif isinstance (rich_output , OutputImagePng ):
536536 return ({'image/png' : rich_output .png .get (),
537537 'text/plain' : plain_text .text .get_str (),
538- }, {})
538+ }, {})
539539 elif isinstance (rich_output , OutputImageGif ):
540540 return ({'text/html' : rich_output .html_fragment (),
541541 'text/plain' : plain_text .text .get_str (),
542- }, {})
542+ }, {})
543543 elif isinstance (rich_output , OutputImageJpg ):
544544 return ({'image/jpeg' : rich_output .jpg .get (),
545545 'text/plain' : plain_text .text .get_str (),
546- }, {})
546+ }, {})
547547 elif isinstance (rich_output , OutputImageSvg ):
548548 return ({'image/svg+xml' : rich_output .svg .get (),
549549 'text/plain' : plain_text .text .get_str (),
550- }, {})
550+ }, {})
551551 elif isinstance (rich_output , OutputImagePdf ):
552552 return ({'image/png' : rich_output .png .get (),
553553 'text/plain' : plain_text .text .get_str (),
554- }, {})
554+ }, {})
555555 elif isinstance (rich_output , OutputSceneJmol ):
556556 from sage .repl .display .jsmol_iframe import JSMolHtml
557557 jsmol = JSMolHtml (rich_output , height = 500 )
558558 return ({'text/html' : jsmol .iframe (),
559559 'text/plain' : plain_text .text .get_str (),
560- }, {})
560+ }, {})
561561 elif isinstance (rich_output , OutputSceneThreejs ):
562562 escaped_html = html .escape (rich_output .html .get_str ())
563563 iframe = IFRAME_TEMPLATE .format (
@@ -567,7 +567,7 @@ def displayhook(self, plain_text, rich_output):
567567 )
568568 return ({'text/html' : iframe ,
569569 'text/plain' : plain_text .text .get_str (),
570- }, {})
570+ }, {})
571571 else :
572572 raise TypeError ('rich_output type not supported' )
573573
0 commit comments