'Folium not showing map, only a grey box

I have just begun with folium and although a box comes up, with the Leaflet | Data by OpenStreetMap ..| in the lower right hand corner, the box doesn't show a map. The code is simple

import folium
from folium import Choropleth, Circle, Marker
from folium.plugins import HeatMap, MarkerCluster

# Create a map
m_1 = folium.Map(location=[42.32,-71.0589], tiles='openstreetmap', zoom_start=10)

# Display the map
m_1

I receive no errors, just a grey box where the map should be -- even the Plus and Minus signs are in the upper left corner.

Any thoughts?

Thanks!



Solution 1:[1]

It works for me, with max_zoom and control_scale set:

folium.Map(tiles='openstreetmap', zoom_start=10, max_zoom=23, control_scale=True, location=[42.32, -71.0589])

Solution 2:[2]

Review the network traffic in your browser's developer console to see if the map tiles are returning a 200. I tested your code and it worked for me which indicates your code is correct but the map tiles are failing to load on your network.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 TkrA
Solution 2