Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit 33a66f9

Browse files
Sean Hellumnisarhassan12
andcommitted
Update src/docs/languages/cpp.md
Co-authored-by: Nisar Hassan Naqvi <[email protected]>
1 parent f6aef31 commit 33a66f9

File tree

9 files changed

+47
-36
lines changed

9 files changed

+47
-36
lines changed

src/docs/languages/cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Gitpod supports C++ right out of the box, but there are still ways to enhance yo
66

77
Here are a few C++ example projects that are already automated with Gitpod:
88

9-
<div class="language-examples">
9+
<div class="table-container language-examples">
1010

1111
| Repository | Description | Try it |
1212
|------|----------------|-----------|

src/docs/languages/dotnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Example Repositories
44

55

6-
<div class="language-examples">
6+
<div class="language-examples table-container">
77

88
| Repository | Description | Try it |
99
|------|----------------|-----------|

src/docs/languages/go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Gitpod supports Go right out of the box, but there are still ways to optimize yo
66

77
Here are a few Go example projects that are already automated with Gitpod:
88

9-
<div class="language-examples">
9+
<div class="language-examples table-container">
1010

1111
| Repository | Description | Try It |
1212
| ----------------------------------------------------------------- | ------------------------------|-------------------------------------------------------------------------------------------------: |

src/docs/languages/html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Here are a few HTML/CSS example projects that are already automated with Gitpod:
88

99

10-
<div class="language-examples">
10+
<div class="language-examples table-container">
1111

1212
|Repository | Description | Try it|
1313
|---|---|---|

src/docs/languages/php.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Gitpod supports PHP right out of the box, but more advanced features such as deb
44

55
## Example Repositories
66

7-
<div class="language-examples">
7+
<div class="language-examples table-container">
88

99
| Repository | Description | Try it |
1010
|------------|-------------|--------|

src/docs/languages/python.md

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Gitpod comes with great support for Python built-in. Still, depending on your pr
66

77
Before we get started, here are some examples of already-[gitpodified](https://www.gitpod.io/blog/gitpodify/) repositories!
88

9-
<div class="language-examples">
9+
<div class="language-examples table-container">
1010

11-
| Repository | Description | Try it |
12-
-----------|-----------------------------------------------------------|----------------------------------------------------
13-
| [gitpod-io/django-locallibrary-tutorial](https://github.com/gitpod-io/django-locallibrary-tutorial) | An example website written in Django by MDN | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](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 | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](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 | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/wxPython-example) |
16-
| [techwithtim/Hangman](https://github.com/techwithtim/Hangman) | A wxPython example for Gitpod | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/techwithtim/Hangman) |
11+
| Repository | Description | Try it |
12+
| --------------------------------------------------------------------------------------------------- | ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
13+
| [gitpod-io/django-locallibrary-tutorial](https://github.com/gitpod-io/django-locallibrary-tutorial) | An example website written in Django by MDN | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](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 | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](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 | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/wxPython-example) |
16+
| [techwithtim/Hangman](https://github.com/techwithtim/Hangman) | A wxPython example for Gitpod | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/techwithtim/Hangman) |
1717

1818
</div>
1919

@@ -28,28 +28,35 @@ You can switch between Python versions using `pyenv local <VERSION>`. For exampl
2828
## [Start tasks](https://www.gitpod.io/docs/config-start-tasks/)
2929

3030
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+
3132
```yaml
3233
tasks:
3334
- init: pip3 install -r requirements.txt
3435
command: python3 main.py
3536
```
3637
3738
## VSCode Extensions
39+
3840
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.
3941
4042
### ARepl for Python
43+
4144
![ARepl extension example](../images/AReplExample.gif)
4245
ARepl for Python is helpful for constantly checking your code and debugging.
4346
To install this extension for your repository, add the following to your [.gitpod.yml](https://www.gitpod.io/docs/config-gitpod-file/):
47+
4448
```yaml
4549
vscode:
4650
extensions:
4751
- [email protected]:Uu7lIOwyLgmNWpTwCl/iqQ==
4852
```
53+
4954
### Python Test Explorer
55+
5056
![Python test explorer example](../images/python_Test_In_Gitpod.png)
5157
Easily test your python extensions with the Python Test Explorer.
5258
To add this to your repository add the following to your [.gitpod.yml](https://www.gitpod.io/docs/config-gitpod-file/)
59+
5360
```yaml
5461
vscode:
5562
extensions:
@@ -95,29 +102,32 @@ ports:
95102
tasks:
96103
- command: python3 app.py
97104
```
105+
98106
<br>
99107
We also support other GUI frameworks such as `Kivy` and `PyQt`
100108
<br>
101109
Here are some other examples of Python GUI applications in Gitpod:
102110

103-
<div class="language-examples">
111+
<div class="language-examples table-container">
104112

105-
| Name | Framework | Try it |
106-
|------------------|----------------|-----------|
107-
| [Tic-Tac-Toe-GUI](https://github.com/JesterOrNot/Tic-Tac-Toe-GUI) | Kivy | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/JesterOrNot/Tic-Tac-Toe-GUI) |
108-
| [Pong](https://github.com/JesterOrNot/Pong) | Kivy | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/JesterOrNot/Pong) |
109-
| [Gitpod-PyQt](https://github.com/gitpod-io/Gitpod-PyQt) | PyQt | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/Gitpod-PyQt) |
113+
| Name | Framework | Try it |
114+
| ----------------------------------------------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------- |
115+
| [Tic-Tac-Toe-GUI](https://github.com/JesterOrNot/Tic-Tac-Toe-GUI) | Kivy | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/JesterOrNot/Tic-Tac-Toe-GUI) |
116+
| [Pong](https://github.com/JesterOrNot/Pong) | Kivy | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/JesterOrNot/Pong) |
117+
| [Gitpod-PyQt](https://github.com/gitpod-io/Gitpod-PyQt) | PyQt | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/Gitpod-PyQt) |
110118

111119
</div>
112120

113121
<br>
114122

115123
## Debugging
124+
116125
Here is a quick clip on how to automatically configure debugging for Python!
117126

118127
![Python debugging example](../images/PythonDebug.gif)
119128

120129
So, basically in this video we:
130+
121131
1. First, open the Python file that we want to debug
122132
2. Then, go to the debug menu and select "Add Configuration..."
123133
3. Next, in the dropdown choose "Python"
@@ -127,33 +137,34 @@ So, basically in this video we:
127137
You can also create the Python debug configuration file manually
128138

129139
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+
130141
```json
131142
{
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+
]
142153
}
143154
```
155+
144156
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.
145157

146158
<br>
147159

148-
149160
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):
150161

151162
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/Gitpod-Python-Debug)
152163

153164
<br>
154165

155-
156166
## 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.

src/docs/languages/ruby.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To change the default Ruby version, you can simply run `rvm use 2.5 --default` i
1111

1212
Here are a few Ruby example projects that are already automated with Gitpod:
1313

14-
<div class="language-examples">
14+
<div class="language-examples table-container">
1515

1616
Repository | Description | Try it
1717
---------|----------|---------

src/docs/languages/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ which will set the required Rust version and if you commit the file into source
3232

3333
Here are a few Rust example projects that are already automated with Gitpod:
3434

35-
<div class="language-examples">
35+
<div class="language-examples table-container">
3636

3737
| Repository | Description | Try it |
3838
|---------|------------|-----|

src/docs/languages/vue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ To work with Vue.js in Gitpod, you will need to properly configure your reposito
66

77
Here are a few Vue.js example projects that are already automated with Gitpod:
88

9-
<div class="language-examples">
9+
<div class="language-examples table-container">
1010

1111
| Repository | Description | Try it |
1212
|------------|-------------|--------|

0 commit comments

Comments
 (0)