Tested on:
- RaspberryPI OS lite (headless) 2025-05-13
- Ubuntu 25.04
# Optional: on a fresh debian install
sudo apt update --fix-missing
sudo apt install -y openssh-serverTested on:
# Optional: on a fresh debian install
sudo apt update --fix-missing
sudo apt install -y openssh-server| # -*- coding: utf-8 -*- | |
| """ | |
| # Python Flask Folium GeoJson Leaflet Ajax (Jquery) Sample | |
| I couldn't find a simple example of how to combine Folium with an AJAX / getJson call. | |
| 1. Generate Folium Map with some static map features | |
| 2. Render to Template View with `render_template_string` | |
| 3. jquery Ajax call polls `/geojson` with `getJson` |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <!-- Required meta tags --> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <!-- cache killer for development --> | |
| <meta http-equiv="Pragma" content="no-cache"> | |
| <title>Hello, World!</title> |
| # Quick Virtualenv | |
| sudo apt-get install python3-pip python3-virtualenv | |
| virtualenv .venv && source .venv/bin/activate | |
| which pip # .venv/bin/pip | |
| pip install -r requirements | |
| # CSV |