Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0014248 commit b5d4a12Copy full SHA for b5d4a12
1 file changed
IPython/utils/jsonutil.py
@@ -98,6 +98,21 @@ def encode_images(format_dict):
98
"""b64-encodes images in a displaypub format dict
99
100
Perhaps this should be handled in json_clean itself?
101
+
102
+ Parameters
103
+ ----------
104
105
+ format_dict : dict
106
+ A dictionary of display data keyed by mime-type
107
108
+ Returns
109
+ -------
110
111
112
+ A copy of the same dictionary,
113
+ but binary image data ('image/png' or 'image/jpeg')
114
+ is base64-encoded.
115
116
"""
117
encoded = format_dict.copy()
118
pngdata = format_dict.get('image/png')
0 commit comments