Skip to content

Jupyter Notebook examples of the OpenTNSim python package

Notifications You must be signed in to change notification settings

TUDelft-CITG/OpenTNSim-Notebooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenTNSim Notebooks

This is the repository with examples for the OpenTNSim package.

The package documentation can be found here.

Example notebooks

OpenTNSim allows the user to simulate (nautical) traffic flow over a NetworkX graph. A number of examples are presented in the notebooks folder. You can run them locally or as an Azure notebook.

Check the information on how to get started either way.

Using the notebooks locally

If you wish to use the notebooks on your local drive, use the following code to get started.

# Download the package
git clone https://github.com/TUDelft-CITG/OpenTNSim-Notebooks

# Go to the correct folder
cd OpenTNSim-Notebooks

# Install package
pip install -r requirements.txt

# Go to the notebooks foldeer
cd notebooks

# Start jupyter notebooks
jupyter notebook

Using Azure Notebooks

If you wish to run the notebooks using Microsoft Azure, use the following set-up to get started.

  1. Create a Microsoft account.
  2. Go to the following Azure Notebooks website.
  3. Clone the project, see information on cloning by Microsoft.
  4. Start the notebook server.
  5. Wait a short while before you run any of the notebooks, the environment takes some time to initialize with the additional packages (such as OpenTNSim and SimPy).