I am trying to export a map I have made with folium in Python to a png format. According to the post below, this can be made with selenium and the following command:
import io
from PIL import Image
import selenium
img_data = map._to_png(5)
img = Image.open(io.BytesIO(img_data))
img.save('map_folium.png')
But I end up with the error:
TimeoutException: Message: Connection refused (os error 111)
In the help forums I have consulted to fix this error mention a problem with firefox not in path. But it is the case on my system. Has anyone encountered the same issue?