Skip to main content

Pydynamo is a module to define, run and analyse system dynamics. I intially created it to play with the World3 model, which was written in DYNAMO, with Python.

Project description

--- english version below ---

TPworld3

Un TP pour jouer avec le modèle World3 et découvrir tout un tas de concepts, qui peuvent servir pour comprendre les dynamiques de la croissance dans un monde fini.

Installation

Option A: Avec le jupyterhub de l'UGA si vous avez un compte UGA

  • Se connecter à https://jupyterhub.univ-grenoble-alpes.fr avec ses identifiants UGA
  • Appuyer sur le bouton upload en haut à droite, et sélectionner le TP téléchargé
  • Sur le menu files, lancer le notebook TP.ipynb en cliquant dessus

Option B: Autrement, en local sous Linux

  • Il faut avoir Python3
  • Le module a été testé sous Ubuntu 24

Créer un environnement virtuel

  • Il est préférable d'utiliser un environnement virtuel, qui assure les bonnes versions des librairies.
  • Pour installer et créer un nouvel environnement virtuel sous le nom de dnovenv:
sudo apt install python3.12-venv
python3.12 -m venv dnovenv

Pour l'activer, si on est dans le dossier qui contient le dossier dnovenv, il faut rentrer:

source dnovenv/bin/activate

et peut on le désactiver avec deactivate.

Installer le TP

  • Ouvrir un terminal, puis installer jupyter et activer les extensions:
python3 -m pip install --upgrade ipykernel jupyter jupyter_contrib_nbextensions notebook==6.4.12
  • Ouvrir le TP.ipynb avec jupyter-lab TP.ipynb.

Jouer

Dans le notebook TP.ipynb, des textes et morceaux de codes montrent l'idée et le fonctionnement de Pydynamo et du modèle World3. On peut faire différentes expériences de simulation en changeant des paramètres, et étudier certains phénomènes.

--- english version ---

English

Tpworld3

A practical session to play with the World3 model and discover many interesting concepts that can be useful to understand the dynamics of growth in a finie world.

Installation

Option A: With UGA (Univ-Grenoble_Alpes) jupyterhub if you have an UGA account

  • Login to https://jupyterhub.univ-grenoble-alpes.fr with your agalan id
  • Click on the upload button at the top right and then select the notebook you downloaded
  • On the files menu, click on the notebook to run it

Option B: Otherwise, locally with linux

  • You should have Python3.8 or more recent
  • The notebook has been tested on Unbuntu20 and more

Create a virtual environment

  • It's better to use a virtual environment to store the librairies you'll use
  • To install a new virtual environment named dnovenv:
sudo apt install python3.12-venv
python3.12 -m venv dnovenv

To activate it, if you are in the folder that contains the dnovenv folder, type::

source dnovenv/bin/activate

et peut on le désactiver avec deactivate.

Install the notebook

  • Open a terminal, and the install jupyter and activate the extensions:
python3 -m pip install --upgrade ipykernel jupyter jupyter_contrib_nbextensions notebook==6.4.12
  • Open the notebook with jupyter-lab TP_en.ipynb.

Play

In the TP_en.ipynb notebook, there is texts and code cells that explain how the pydynamo module and the World3 model works. We cans run different simulations, change parameters and analyse some phenomenon.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydynamo_w-0.0.3.tar.gz (46.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydynamo_w-0.0.3-py3-none-any.whl (49.7 kB view details)

Uploaded Python 3

File details

Details for the file pydynamo_w-0.0.3.tar.gz.

File metadata

  • Download URL: pydynamo_w-0.0.3.tar.gz
  • Upload date:
  • Size: 46.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pydynamo_w-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9ae4e3deae8fc273cf42855141b683b0324d47253cfac5b674527dba46cb742a
MD5 e5916a1e6d0882330df30e83b84b62a6
BLAKE2b-256 a77dac2b5d07902e5d4f4b3091cff120d2804a7288727bdefda630a94056ba45

See more details on using hashes here.

File details

Details for the file pydynamo_w-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pydynamo_w-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 49.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pydynamo_w-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d2041a636bfacf0d84b259b17591b9b7477193401e33b89cba6327d68b32aabb
MD5 423a9fa2b40acc8cac5a6bd57025bcea
BLAKE2b-256 8bfd6e6ce3bed84dc388b4b5c55fe2c3fe889ff46fa2d84f204633dbef211bca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page