Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,21 @@ Standaard setup voor python-projects bij HHNK. In de repo staan een aantal voorb
Onderstaand staat uitgewerkt welke software wordt gebruikt, hoe testen opgezet kunnen worden, projectopzet en meer.

# Installatie
## Lokaal
Om deze repo goed neer te zetten moeten een aantal stappen worden genomen:
- `git clone` -> Clone de repo
- `git clone https://github.com/HHNK/python-workflow-demo` -> Clone de repo
- `pixi install` -> installeer de python environment (draai dit in de repo;`cd python-workflow-demo`)
- `pixi run postinstall`

## Codespaces
Github Codespace geven een platform om zonder installaties in de cloud ook te werken met een github branch en vs-code. Via de hoofdpagina van de repo https://github.com/HHNK/python-workflow-demo klikken op de groene `Code` rechtsboven en vanuit daar een Codespace aanmaken.

Vervolgens moet de environment geinstalleerd worden en enkele vs-code extensions (zie (# IDE )). Verdere stappen
- `curl -fsSL https://pixi.sh/install.sh | sh` in terminal vs-code -> install pixi
- ctrl+shift+` -> restart shell
- `pixi install`
- `pixi run postinstall`

# IDE
Voor de developer environment zijn er veel opties, we gebruiken [Visual Studio Code](https://code.visualstudio.com/download). Dit biedt goede integratie van notebooks en tal van andere extensions. Uiteindelijk zal persoonlijke voorkeur ook meespelen in de keuze. Om samenwerking binnen het team te bevorderen maken we alleen gebruik van vs-code.

Expand Down Expand Up @@ -198,4 +208,6 @@ De resultaten zijn op de repo te zien onder [Actions](https://github.com/HHNK/py


# AI helpers
Zelf thuis een [Ollama](https://ollama.com/) installatie draaien waarmee je lokaal AI kan draaien. Met de [Continue](https://docs.continue.dev/getting-started/install) extension zijn code-hints mogelijk zonder de limieten van de free-tier van [Copilot](https://code.visualstudio.com/docs/copilot/overview). Hiervoor is wel een redelijke GPU nodig. Ervaring tot nu is net iets minder dan de online tools.
Zelf thuis een [Ollama](https://ollama.com/) installatie draaien waarmee je lokaal AI kan draaien. Met de [Continue](https://docs.continue.dev/getting-started/install) extension zijn code-hints mogelijk zonder de limieten van de free-tier van [Copilot](https://code.visualstudio.com/docs/copilot/overview). Hiervoor is wel een redelijke GPU nodig. Ervaring tot nu is net iets minder dan de online tools.


13 changes: 13 additions & 0 deletions bin/install_hrt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
set -e # Exit on error

# Optional: echo commands for debugging
# set -x

# Check if the directory ../hhnk-research-tools exists
if [ ! -d "../hhnk-research-tools" ]; then
git clone https://github.com/HHNK/hhnk-research-tools/ ../hhnk-research-tools
fi

# Install the package in editable mode without dependencies
pip install --no-deps -e ../hhnk-research-tools
10 changes: 10 additions & 0 deletions bin/install_htt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e # Exit on any error

# Clone the repo if it doesn't exist
if [ ! -d "../hhnk-threedi-tools" ]; then
git clone https://github.com/threedi/hhnk-threedi-tools/ ../hhnk-threedi-tools
fi

# Install with the same pip flags as in the Windows script
pip install --no-build-isolation --no-deps --disable-pip-version-check -e ../hhnk-threedi-tools
Loading
Loading