You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 19, 2021. It is now read-only.
|[gitpod-io/django-locallibrary-tutorial](https://github.com/gitpod-io/django-locallibrary-tutorial)| An example website written in Django by MDN |[](https://gitpod.io/#https://github.com/gitpod-io/django-locallibrary-tutorial)|
14
-
|[gitpod-io/Gitpod-PyQt](https://github.com/gitpod-io/Gitpod-PyQt)| A PyQt example for Gitpod |[](https://gitpod.io/#https://github.com/gitpod-io/Gitpod-PyQt)|
15
-
|[gitpod-io/wxPython-example](https://github.com/gitpod-io/wxPython-example)| A wxPython example for Gitpod |[](https://gitpod.io/#https://github.com/gitpod-io/wxPython-example)|
16
-
|[techwithtim/Hangman](https://github.com/techwithtim/Hangman)|A wxPython example for Gitpod |[](https://gitpod.io/#https://github.com/techwithtim/Hangman)|
|[gitpod-io/django-locallibrary-tutorial](https://github.com/gitpod-io/django-locallibrary-tutorial)| An example website written in Django by MDN |[](https://gitpod.io/#https://github.com/gitpod-io/django-locallibrary-tutorial)|
14
+
|[gitpod-io/Gitpod-PyQt](https://github.com/gitpod-io/Gitpod-PyQt)|A PyQt example for Gitpod |[](https://gitpod.io/#https://github.com/gitpod-io/Gitpod-PyQt)|
15
+
|[gitpod-io/wxPython-example](https://github.com/gitpod-io/wxPython-example)| A wxPython example for Gitpod |[](https://gitpod.io/#https://github.com/gitpod-io/wxPython-example)|
16
+
|[techwithtim/Hangman](https://github.com/techwithtim/Hangman)| A wxPython example for Gitpod |[](https://gitpod.io/#https://github.com/techwithtim/Hangman)|
17
17
18
18
</div>
19
19
@@ -28,28 +28,35 @@ You can switch between Python versions using `pyenv local <VERSION>`. For exampl
You can start building your project when, or even [before](https://www.gitpod.io/docs/prebuilds/) you start your Gitpod workspace. Are you using a `requirements.txt` file to manage dependencies? If so, add this to your [.gitpod.yml](https://www.gitpod.io/docs/config-gitpod-file/) to automatically pre-install all dependencies when starting a workspace:
31
+
31
32
```yaml
32
33
tasks:
33
34
- init: pip3 install -r requirements.txt
34
35
command: python3 main.py
35
36
```
36
37
37
38
## VSCode Extensions
39
+
38
40
While the most popular Python VSCode extensions are built into Gitpod, here are a few "nice to have" extensions that you can use as well.
1. First, open the Python file that we want to debug
122
132
2. Then, go to the debug menu and select "Add Configuration..."
123
133
3. Next, in the dropdown choose "Python"
@@ -127,33 +137,34 @@ So, basically in this video we:
127
137
You can also create the Python debug configuration file manually
128
138
129
139
To start debugging your Python application in Gitpod, please create a new directory called `.theia/`, and inside add a file called `launch.json`, finally, add the following to it:
140
+
130
141
```json
131
142
{
132
-
"version": "0.2.0",
133
-
"configurations": [
134
-
{
135
-
"name": "Python: Current File",
136
-
"type": "python",
137
-
"request": "launch",
138
-
"program": "${file}",
139
-
"console": "internalConsole"
140
-
}
141
-
]
143
+
"version": "0.2.0",
144
+
"configurations": [
145
+
{
146
+
"name": "Python: Current File",
147
+
"type": "python",
148
+
"request": "launch",
149
+
"program": "${file}",
150
+
"console": "internalConsole"
151
+
}
152
+
]
142
153
}
143
154
```
155
+
144
156
Then, simply open the Python file you want to debug, open the Debug panel (in the left vertical toolbar, click the icon with the crossed-out-spider), and click the green "Run" button.
145
157
146
158
<br>
147
159
148
-
149
160
To see a basic repository with Python debugging enabled, please check out [gitpod-io/Gitpod-Python-Debug](https://github.com/gitpod-io/Gitpod-Python-Debug):
150
161
151
162
[](https://gitpod.io/#https://github.com/gitpod-io/Gitpod-Python-Debug)
152
163
153
164
<br>
154
165
155
-
156
166
## Resources
157
-
* ***[VSCode documentation for Python debugging](https://code.visualstudio.com/docs/python/debugging)*** All the information there should also apply to Gitpod as well.
158
-
* ***[Troubleshooting Matplotlib/TK](https://github.com/gitpod-io/gitpod/issues/795)*** Here is how to troubleshoot Matplotlib/TK issues for Python GUI applications.
159
-
* ***[Debugging Django](https://community.gitpod.io/t/django-debugging/381/6)*** This is how to debug Django applications in Gitpod.
167
+
168
+
- **_[VSCode documentation for Python debugging](https://code.visualstudio.com/docs/python/debugging)_** All the information there should also apply to Gitpod as well.
169
+
- **_[Troubleshooting Matplotlib/TK](https://github.com/gitpod-io/gitpod/issues/795)_** Here is how to troubleshoot Matplotlib/TK issues for Python GUI applications.
170
+
- **_[Debugging Django](https://community.gitpod.io/t/django-debugging/381/6)_** This is how to debug Django applications in Gitpod.
0 commit comments