Welcome to you in Positron. This repository is intended to gather documents, mainly Jupyter notebooks as teaching aids for digital methods. In order to keep the repository free of unnecessary files and hard-to-read commits, it is mandatory to follow the following guidelines:
The associated book is available online here:
This repository is designed to be used with a devcontainer. To use it, you need to have acces to Docker (locally or remotely) and Visual Studio Code installed on your computer. The devcontainer relies on the base image defined in https://github.com/symmeHub/symme_docker_images/tree/main/src/scientific_python . If not already done, you need to build the base image before building the devcontainer.
Before playing, you need to activate pre-commit in your environment:
pre-commit install
To build the book and test it locally, run the following command from the root folder:
jupyter-book build book
Sometimes it is necessary to clean the book build folder with it:
jupyter-book clean book
To update the online Book, you need to trigger de CI/CD. Two options are available here :
-
Add key [ci-run] to your commit message.
Example :
git commit -am "[ci-run] This is an example commit to trigger CI"
-
Triggering from CI/CD from web.
-
If Gitlab :
- Go to: https://gitlab.com/symmehub/teaching/positron >> CI/CD/ >> Run pipeline