Skip to content

After a Loop Folium doesn't show up map #1575

@renzocaceresrossiv

Description

@renzocaceresrossiv

I' m working with Jupyter Notebook and RMarkdown, when I run the following code in Jupyter works fine, but in RMkardown runs but doesn't show up the map
import folium as fl

import pandas as pd

puntos = pd.read_csv('F:\DISCO3\Documents\python_folium\puntos.txt')

puntos

points = puntos.loc[0]

palacio_gobierno = fl.Map(location=[-12.0458318974237, -77.03052679284455],zoom_start=16)

for _,points in puntos.iterrows():
fl.Marker(location=[points['latitud'],points['longitud']]
,icon=fl.Icon(color=points['color'],icon=points['simbolo'])).add_to(palacio_gobierno)

palacio_gobierno

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions