| 171 | == Using PyDev in Eclipse |
| 172 | You can also use Eclipse to develop your python parties. |
| 173 | |
| 174 | * Install PyDev. Go to Eclipse MarketPlace and search for PyDev. Click on Install and follow the instructions. |
| 175 | * Download an example project as usual in Eclipse: |
| 176 | * Install an SVN client if you don't have one installed. Go to Eclipse MarketPlace and search for subclipse. Click on Install and follow the instructions. Also follow the javahl installation instructions. This will involve separate software as well. |
| 177 | * Import the project: |
| 178 | * click File/Import/SVN/Checkout Projects from SVN. Click Next, |
| 179 | * select Create a new repository location and Next. Enter e.g. https://tracinsy.ewi.tudelft.nl/pub/svn/GeniusWebPython/exampleparties/randomparty. |
| 180 | * Select the root folder and Finish. |
| 181 | * Select General/Project, Next, enter some project name "demo", Finish |
| 182 | * Create a virtual env for python |
| 183 | * open terminal |
| 184 | * Go the project workspace |
| 185 | * {{{python3 -m venv venv; source venv/bin/activate; pip install -r requirements.txt}}} |
| 186 | * Set up Eclipse env |
| 187 | * Window/Preferences/PyDev/Interpreters/Python Interpreter |
| 188 | * New/Browse for python/pypy.exe |
| 189 | * Browse to the venv/bin/python3 file you created |
| 190 | * enter interpreter name, eg your project name "demo" |
| 191 | * check also the site-packages and click OK |
| 192 | * PyDev/Editor/Code Analysis/Mypy and check "Use Mypy?" |
| 193 | * Apply and close |
| 194 | * Configure your project |
| 195 | * Right click on demo project in navigator or project explorer |
| 196 | * PyDev/Set as PyDev Project |
| 197 | * Right click on demo project in navigator or project explorer and select "Properties" |
| 198 | * Select PyDev/PyDev Interpreter Grammar |
| 199 | * Select the Interpreter "demo". |
| 200 | * Click on PyDev-PYTHONPATH |
| 201 | * Click Add source folder and select the demo folder (the root of the demo project) |
| 202 | * Go to PyDev/Editor/ |
| 203 | |
| 204 | |
| 205 | |
| 206 | |