This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Add Julia to 'Languages and frameworks' section and improve Py…
…thon
- Loading branch information
1 parent
ef9b9ab
commit 1e5346e
Showing
1 changed file
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,55 @@ | ||
# Python | ||
|
||
> 🚧 Please help improve this guide by [editing it](https://gitpod.io/#https://github.com/gitpod-io/website/blob/master/src/docs/python_in_gitpod.md). | ||
|
||
Gitpod comes with great support for Python builtin. Still, depending on your particular project, you might want to further optimize the experience. | ||
|
||
## GUI Applications with wxPython | ||
Have a super cool GUI application you are building with wxPython? Want to run it in Gitpod? Please take a look at [JesterOrNot/Gitpod-PythonGUI-Example](https://github.com/JesterOrNot/Gitpod-PythonGUI-Example) | ||
|
||
Here is an example `.gitpod.Dockerfile`: | ||
```dockerfile | ||
FROM gitpod/workspace-full-vnc:latest | ||
|
||
USER root | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install wxPython Dependencies | ||
RUN apt-get -q update \ | ||
&& apt-get install -yq \ | ||
freeglut3-dev \ | ||
python3.7-dev \ | ||
libpython3.7-dev \ | ||
libgl1-mesa-dev \ | ||
libglu1-mesa-dev \ | ||
libgstreamer-plugins-base1.0-dev \ | ||
libgtk-3-dev \ | ||
libnotify-dev \ | ||
libsdl2-dev \ | ||
libwebkit2gtk-4.0-dev \ | ||
libxtst-dev \ | ||
libgtk2.0-dev \ | ||
&& sudo rm -rf /var/lib/apt/lists/* | ||
|
||
# Add wxPython itself | ||
|
||
USER gitpod | ||
|
||
RUN pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/ wxPython | ||
``` | ||
Here is an example `.gitpod.yml`: | ||
```yaml | ||
image: | ||
file: .gitpod.Dockerfile | ||
|
||
ports: | ||
- port: 6080 | ||
onOpen: open-preview | ||
- port: 5900 | ||
onOpen: ignore | ||
- port: 35900 | ||
onOpen: ignore | ||
|
||
tasks: | ||
- command: python3 app.py | ||
``` |