Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Add decode for python 3 (#2265)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekpratapa committed Aug 26, 2019
1 parent 7d6eeff commit da58175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/turicreate/visualization/_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def display_table_in_notebook(sf):
def image_formatter(im):
image_buffer = BytesIO()
im.save(image_buffer, format='PNG')
return "<img src=\"data:image/png;base64," + base64.b64encode(image_buffer.getvalue()) + "\"/>"
return "<img src=\"data:image/png;base64," + base64.b64encode(image_buffer.getvalue()).decode() + "\"/>"

import pandas as pd
maximum_rows = 100
Expand Down

0 comments on commit da58175

Please sign in to comment.