This repo contains examples and tutorials for various Banyan Python libraries.
To run the notebooks, follow the following steps:
- Set up a Banyan account by following the steps here.
- Install Git and clone (download) this repository by running the following in a terminal (command prompt):
git clone git@github.com:banyan-team/banyan-python-examples.git
-
Download the Python installer for your operating system here, and follow the instructions to finish the installation. Be sure to select a version >= 3.8.
-
Install Jupyter Notebook by running
pip install notebook
or follow directions here. -
Cd into the directory of the notebook you would like to run. Then, run
BANYAN_API_KEY=<YOUR_BANYAN_API_KEY> BANYAN_USER_ID=<YOUR_BANYAN_USER_ID> poetry run jupyter notebook
to open Jupyter Notebook in the required environment. Then open the.ipynb
file to run the notebook. Alternatively, you can open the notebooks in VSCode, following the instructionshere.
flow_simulation.ipynb
- This notebook provides an example of how to spin up a cluster and a session and how to run an MPI-based water flow simulation on the cluster.