Fix for issue (TypeError in RichJupyterWidget class)
@@ -61,8 +61,8 @@ class RichJupyterWidget(RichIPythonWidget):
# Do we support jpg ?
# it seems that sometime jpg support is a plugin of QT, so try to assume
# it is not always supported.
- _supported_format = [bytes(f) for f in QtGui.QImageReader.supportedImageFormats()]
- self._jpg_supported = b'jpeg' in _supported_format
+ _supported_format = [str(f) for f in QtGui.QImageReader.supportedImageFormats()]
+ self._jpg_supported = 'jpeg' in _supported_format
#---------------------------------------------------------------------------
