show folium outside of ipython notebooks
See original GitHub issueHey guys i am trying to run one of the examples you provide. However, I am unable to render it. It’s probably because I am using it in a normal python script inside the PyCharm. Is there any functionality similar to matplotlib show()
? I tried render()
but it does not do anything…
import folium
from folium.plugins import HeatMap
import numpy as np
print(folium.__version__)
#0.6.0
data = (np.random.normal(size=(100, 3)) *
np.array([[1, 1, 1]]) +
np.array([[48, 5, 1]])).tolist()
m = folium.Map([48., 5.], tiles='stamentoner', zoom_start=6)
HeatMap(data).add_to(m)
m
# <folium.folium.Map object at 0x7f4c56e14b70>
m.render()
# nothing happens
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:20 (14 by maintainers)
Top Results From Across the Web
python - Folium map not displaying - Stack Overflow
To display in the iPython notebook, you need to generate the html with the myMap._build_map() method, and then wrap it in an iFrame...
Read more >Map Visualizations in Python Using Folium - Pluralsight
To set up, open a new notebook and run the installation for both Folium and pandas by running the command below on a...
Read more >Quickstart — Folium 0.12.1 documentation - GitHub Pages
To create a base map, simply pass your starting coordinates to Folium: ... To display it in a Jupyter notebook, simply ask for...
Read more >python-visualization/folium - Gitter
I had a homegrown solution for this (e.g. http://54.242.2.146:9999/notebooks/Sample/Timeseries_Sample.ipynb, cell 37) but want to move to something more ...
Read more >Jupyter Notebook files
We can do the same for interactive material. Below we'll display a map using folium. When your book is built, the code for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you want to open your map in your web browser you could do something like this:
On my Windows machine this opens the map in my default webbrowser. No need to run a server or anything.
Does this work for you?
Proof of concept. Tested with python 3.5 and folium 0.6.0