Skip to content

Commit 2f2baf8

Browse files
author
Martin Journois
committed
Fix python3 issue in Map._repr_html_()
1 parent d351abd commit 2f2baf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

folium/element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def _repr_html_(self, **kwargs):
267267

268268
iframe = '<iframe src="{html}" width="{width}px" height="{height}px"></iframe>'\
269269
.format(\
270-
html = b"data:text/html;base64,"+base64.b64encode(html.encode('utf8')),
270+
html = "data:text/html;base64,"+base64.b64encode(html.encode('utf8')).decode('utf8'),
271271
#html = self.HTML.replace('"','&quot;'),
272272
width = int(60.*width),
273273
height= int(60.*height),

0 commit comments

Comments
 (0)