Muchas gracias.

Aunque me sigue dando error, porque me dice : "'module' object has no
attribute 'IFrame'"

si pongo* iframe = folium.element.IFrame(html, width=200, height=200)*

Entonces me da este otro error.

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
4: ordinal not in range(128)




El 26 de abril de 2017, 19:00, kikocorreoso <kikocorre...@gmail.com>
escribió:

> On 26/04/17 18:25, Carlos Agullo wrote:
>
> Estoy trabajando con folium y me gustaría poder dar formato a las
> etiquetas de los puntos que agrego al mapa, pero a la hora de poner
> comandos como /n o cosas así, me imprime directamente /n en lugar de un
> salto de línea.
>
> ¿hay forma de darle formato?
>
> Puedes usar un folium.IFrame en folium.Popup .
>
> Échale un ojo a la documentación: http://python-visualization.
> github.io/folium/module/map.html#marker
>
> Un ejemplo mínimo:
>
> import folium
>
> html = """<p>Línea 1</p><br>
> <p>Línea 2</p><br>
> <a href="https://pybonacci.org"; <https://pybonacci.org>>Link.</a>"""
>
> iframe = folium.IFrame(html, width=200, height=200)
> popup = folium.Popup(iframe)
> marker = folium.Marker((40,0), popup=popup)
> map = folium.Map()
> map.add_child(marker)
> map.save("ejemplo,html")
>
> Saludos.
>
>
>
> _______________________________________________
> Python-es mailing 
> listPython-es@python.orghttps://mail.python.org/mailman/listinfo/python-es
>
>
>
> _______________________________________________
> Python-es mailing list
> Python-es@python.org
> https://mail.python.org/mailman/listinfo/python-es
>
>
_______________________________________________
Python-es mailing list
Python-es@python.org
https://mail.python.org/mailman/listinfo/python-es

Responder a