question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HeatMapWithTime can not work

See original GitHub issue

Please add a code sample or a nbviewer link, copy-pastable if possible

# Your code here
HeatMapWithTime can not work
version python:3.7.4

Problem description

https://nbviewer.jupyter.org/github/python-visualization/folium/blob/master/examples/HeatMapWithTime.ipynb this demo can not work

Expected Output

Output of folium.__version__

‘0.10.0’

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:18

github_iconTop GitHub Comments

5reactions
farisnanosoftcommented, Nov 11, 2019

Got the same error for HeatMapWithTime. The javascript web link inside the html file are placed by folium leaflet. Looks like there was recent update to leaflet timedimension.

https://rawcdn.githack.com/socib/Leaflet.TimeDimension/master/dist/leaflet.timedimension.min.js Leaflet TimeDimension v1.1.1 - 2019-11-05

Replace with below url in the html to fix the issue. https://cdn.jsdelivr.net/npm/leaflet-timedimension@1.1.0/dist/leaflet.timedimension.min.js

1reaction
Conengmocommented, Nov 14, 2019

I looked into this a bit. The developer of TimeDimension gave a suggestion in https://github.com/socib/Leaflet.TimeDimension/issues/181, that the iso8601-js-period lib has to be loaded before loading TimeDimension. This is also listed in their basic usage example. Strange enough we were not loading that lib in our heatmap with time plugin. Adding that lib seems to solve this issue. I don’t know why it worked with TimeDimension v1.1.0 without it. But I’d prefer if we can keep up with changes in TimeDimension.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Folium - plugins.HeatMapWithTime no longer produces an ...
I have been away and one returning I have noticed that these scripts no longer produce a result that is viewable. The scripts...
Read more >
python folium HeatMapWithTime plugin only showing base map
I've upgraded to folium 0.10.1 and still not working. I've tried it with my code, and code from example https://www.kaggle.com/daveianhickey/ ...
Read more >
Folium: HeatMapWithTime is not displaying data point
I have already visualized the heatmap with LayerContol with folium but now I want to add a time index for having a time...
Read more >
plugins — Folium 0.12.1 documentation - GitHub Pages
This plugins adds a button to the map, and when it's clicked shows the current user device location. To work properly in production,...
Read more >
Time-lapse heat maps with Folium - Medium
Working on a Data Science project, I decided to test some spatial ... but since this is not a topic of this tutorial,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found