- https://github.com/Systems-Modeling/SysML-v2-Release/
- https://anaconda.org/conda-forge/jupyter-sysml-kernel
Install Using Mamba
# -*- 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 |
""" | |
Simple Pandas demo | |
- generating time-series data | |
- writing & load with CSV | |
- resampling | |
""" |
# app/urls.py | |
urlpatterns += [ | |
path('<path:path>', views.view_static, name='serve') | |
] | |
# app/views.py | |
from django.views.static import serve | |
def view_static(response, path): | |
path = os.path.join('static', path) |