Skip to content

Commit 4bc20ae

Browse files
committed
Merge pull request #218 from BibMartin/python3_repr_html
Fix python3 issue in Map._repr_html_()
2 parents d351abd + 2f2baf8 commit 4bc20ae

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)