Skip to content

Visualization tool for COVID19 outbreak using GeoPandas and Bokeh

License

Notifications You must be signed in to change notification settings

MoadComputer/covid19-visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

covid19-visualization

Visualization tool for COVID19 outbreak in India using GeoPandas and Bokeh

App deployment

For Jupyter/JupyterHub/JupyterLab in AMD64/x86-64 Linux machines

  • Run the notebook by selecting from the menu: Kernel and then: Restart & Run All Jupyter how-to

For Jupyter in AARCH64 Linux machines

  • Deploy Bokeh server for AARCH64 Linux using the cheatsheet below
  • Edit the first cell to: setup=False
  • Run the notebook

For Jupyter in Windows machines

  • Deploy Bokeh server using the cheatsheet below
  • Activate conda virtualenv: conda activate GeoPandas
  • Install Jupyter and ipykernel: conda install -c conda-forge python=3 notebook ipykernel --yes
  • Run Jupyter: jupyter notebook
  • Edit the first cell to: setup=False
  • Run the notebook

For Google Colab

  • Launch using the Google Colab link, go to: Runtime, select: Run all or press CTRL+F9
  • Accept the Google Colab warning about notebook not authored by Google by clicking: Run anyway Google Colab how-to

2. Bokeh server app

  • Git clone the repositroy: git clone https://github.com/MoadComputer/covid19-visualization; cd covid19-visualization
  • Launch the Bokeh server: bokeh serve --show ./app/COVID19_India.py
  • Go to your browser location and the app will be served Bokeh static output

Bokeh server deployment cheatsheet

For AMD64/x86-64 Linux users

  • Install git: apt install git
  • Clone the repo: git clone git clone https://github.com/MoadComputer/covid19-visualization; cd covid19-visualization
  • Use the requirements file to install dependencies: python3 -m pip install -r ./requirements.txt

For AARCH64 Linux users

  • Install build tools and CMake: apt install make clang llvm libc++-dev libc++abi-dev
  • Install llmvmlite for python3: python3 -m pip install llvmlite
  • Install libatlas-dev: apt install libatlas-base-dev
  • Install AARCH64 linux dependencies: apt install libgdal-dev gdal-bin python3-gdal libtiff-dev libsqlite3-dev sqlite
  • Clone and prepare PROJ repository for CMake: git clone https://github.com/OSGeo/PROJ; cd ./PROJ; ./autogen
  • Configure PROJ: ./configure
  • Make and install PROJ: make; make install
  • Install pyproj: python3 -m pip install git+https://github.com/pyproj4/pyproj.git
  • Install pandas: apt install python3-pandas
  • Install app dependencies: python3 -m pip install fiona geopandas shapely bokeh --no-deps
  • Install visvalingamwyatt for GeoJSON minification: python3 -m pip install visvalingamwyatt

For Windows users (Using Anaconda Python3)

  • Update conda: conda update -n base -c defaults conda
  • Create virtual Anaconda3 environment: conda create -n GeoPandas -c conda-forge python=3.11.5 geopandas --yes
  • Activate virtual Anaconda3 environment: conda env activate GeoPandas
  • Install git: conda install -n GeoPandas -c anaconda git
  • Install bokeh: conda install -n GeoPandas -c bokeh bokeh
  • Install matplolib: conda install -n GeoPandas -c conda-forge matplotlib descartes
  • Install nbformat: conda install -n GeoPandas -c anaconda nbformat
  • Update nbformat: conda update nbformat
  • Install jupyter: conda install jupyter
  • Update jupyter: conda update jupyter
  • Install visvalingamwyatt for GeoJSON minification: python -m pip install visvalingamwyatt
  • Launch jupyter: python -m notebook
  • To remove the application: deactivate the virtual environment conda deactivate GeoPandas and run conda env remove --name GeoPandas

About

Visualization tool for COVID19 outbreak using GeoPandas and Bokeh

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published