Giter VIP home page Giter VIP logo

openrouteservice-examples's Introduction

Jupyter examples to use openrouteservice

Binder

(Mostly) real-world examples and inspirations to use the full range of ORS services and clients.

For an instant setup, you can use MyBinder to start an interactive Jupyter server.

Local installation

# clone the repo and enter folder
git clone https://github.com/GIScience/openrouteservice-examples.git
cd openrouteservice-examples

# Install the requirements in a virtual env and activate it
python -m venv .venv
source .venv/bin/activate

pip install -r requirements

Note: In case jupyter is already installed globally, and you want to use the local version, you can create a symlink to the local jupyter with:

ln -s .venv/bin/jupyter jupyter

Then, run jupyter commands with ./jupyter instead.

Launch the Jupyter server on the python directory

jupyter notebook python/

Development

If you are not just using but editing or adding notebooks, you need to install the jupytext extension

# set up jupytext server extension
jupyter nbextension install --py jupytext --user
jupyter nbextension enable jupytext --user --py
jupyter serverextension enable jupytext

Note, that every notebook is paired with a corresponding .py-file of the same name. On changing either the notebook or the .py-file, the other one will be automatically updated.

When reviewing changes, only the .py-file needs to be looked at, the .ipynb-file is only kept for use with jupyter in the browser and to render maps and other information.

Pairing new notebooks

New notebooks have to be paired by clicking File > Jupytext > Pair notebook with light Script

openrouteservice-examples's People

Contributors

thegialeo avatar nilsnolde avatar thegreatrefrigerator avatar koebi avatar isikl avatar hagellach37 avatar felixschniertshauer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.