I try to upload my work to github with a folium map in python, but it fails to render the map as it should be on my PC.
Here is folium map shows on my PC:
Here is what I have on github, same notebook file:
Thanks
Quoting from github help:
When you add Jupyter Notebook or IPython Notebook files with a .ipynb extension on GitHub, they will render as static HTML files in your repository. The interactive features of the notebook, such as custom JavaScript plots, will not work in your repository on GitHub.
So, in short, interactive features of Jupyter notebooks like the folium
maps won't be rendered when you add them in a github repository.
As a workaround, you can use nbviewer as mentioned here. You just need to put the github link of your notebook in nbviewer and all your maps will be rendered there as they would normally be in a jupyter notebook.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With