Episode 1: Environment Setup
Learn how to set up a complete development environment, including Python, VS Code, and essential extensions. This episode prepares your system for running and exploring g.Pype projects.
Follow the steps below to set up your development environment. Note that you need a desktop or laptop computer with Windows or macOS to run g.Pype. Mobile environments (tablets, smartphones) are not yet supported. g.Pype does not require specialized hardware, but a reasonably modern system is recommended for optimal performance. Internet access is needed for downloading software but not for running g.Pype.
Go to https://www.python.org/downloads/ and download the latest compatible version. Run the installer and follow the instructions.
Next, we need an IDE. Visit https://code.visualstudio.com/ to download the latest stable version of VS Code. Install it following the instructions for your OS. Throughout this training, VS Code will be used, but feel free to use another editor if you prefer.
Launch VS Code and open the Extensions view (Ctrl+Shift+X). Search for and install the following extensions (latest versions): Python (by Microsoft) and Pylance (by Microsoft).
Open a terminal in VS Code and run pip install gpype. This might take a couple of minutes, since all dependencies need to be installed
as well. To verify the installation, execute pip show gpype in the terminal. You should see the installed version of g.Pype.
You can explore g.Pype’s source code and example scripts locally by cloning the repository from GitHub. Install
a Git client, open the terminal, navigate to a suitable directory,
and run git clone https://github.com/gtec-medical-engineering/gpype.git.
That’s it! A couple of simple steps and you are ready to use g.Pype. Proceed to the next episode to run your first pipeline.