... | @@ -154,7 +154,7 @@ But before you start, make sure **you add me as a project member**. Go to the *M |
... | @@ -154,7 +154,7 @@ But before you start, make sure **you add me as a project member**. Go to the *M |
|
|
|
|
|
## Working with Pycharm and Gitlab
|
|
## Working with Pycharm and Gitlab
|
|
|
|
|
|
For developing in python we are going to use the [PyCharm IDE](https://www.jetbrains.com/pycharm/download/?gclid=Cj0KCQiA-JXiBRCpARIsAGqF8wU4k1AvuaMc2tQ7gsbn23gdFIMNlczsnPDi-WyXa-cKkdUgxcbW7hYaAn2uEALw_wcB&gclsrc=aw.ds#section=linux) (Community edition 2022.2). It is already installed in the lab environment.
|
|
For developing in python we are going to use the [PyCharm IDE](https://www.jetbrains.com/pycharm/download/?gclid=Cj0KCQiA-JXiBRCpARIsAGqF8wU4k1AvuaMc2tQ7gsbn23gdFIMNlczsnPDi-WyXa-cKkdUgxcbW7hYaAn2uEALw_wcB&gclsrc=aw.ds#section=linux) (Community edition 2022.2). It is already installed in the lab environment. If you like, you can activate the professional version with your university credentials.
|
|
|
|
|
|
### Opening PyCharm
|
|
### Opening PyCharm
|
|
|
|
|
... | @@ -190,11 +190,11 @@ Click on the **copy button** on the right side. |
... | @@ -190,11 +190,11 @@ Click on the **copy button** on the right side. |
|
|
|
|
|

|
|

|
|
|
|
|
|
Then move to the Pycharm Windows and paste the URL.
|
|
Then move to Pycharm and paste the URL.
|
|
|
|
|
|

|
|

|
|
|
|
|
|
Then select below the **local folder** were you want to store your project. By default it is located in the **PycharmProjects** folder in your home. I will use the default folder. Click on the **Clone** button.
|
|
Then select **local folder** were you want to store your project. By default it is located in the **PycharmProjects** folder in your home. The image below selects the default folder, but you can chose your own. Click on the **Clone** button.
|
|
|
|
|
|
Now you will be asked if you want to **open** the new project.
|
|
Now you will be asked if you want to **open** the new project.
|
|
|
|
|
... | @@ -218,7 +218,7 @@ If you click on the top left folder, you will see all the **contents** of your w |
... | @@ -218,7 +218,7 @@ If you click on the top left folder, you will see all the **contents** of your w |
|
|
|
|
|

|
|

|
|
|
|
|
|
Before doing our first python program, let's make some **changes** to the **README file** and upload into our remote repository in Gitlab. Click on the README file to edit it.
|
|
Before doing our first Python program, let's make some **changes** to the **README file** and upload into our remote repository in Gitlab. Click on the README file to edit it.
|
|
|
|
|
|

|
|

|
|
|
|
|
... | @@ -260,7 +260,7 @@ If you go to your gitlab repo page, you will see the changes you just did. |
... | @@ -260,7 +260,7 @@ If you go to your gitlab repo page, you will see the changes you just did. |
|
|
|
|
|
## Hello world with Pycharm!
|
|
## Hello world with Pycharm!
|
|
|
|
|
|
Let's write our first python program in Pycharm. The first step is to configure the python environment.
|
|
Let's write our first python program in PyCharm. The first step is to configure the python environment.
|
|
|
|
|
|
### Configuring the python environment
|
|
### Configuring the python environment
|
|
|
|
|
... | @@ -290,7 +290,7 @@ The **python interpreter** is ready! You will see the new folder called **venv** |
... | @@ -290,7 +290,7 @@ The **python interpreter** is ready! You will see the new folder called **venv** |
|
|
|
|
|
### Writing the Hello world program
|
|
### Writing the Hello world program
|
|
|
|
|
|
Let's write our first Hello world program in PyCharm. You could create a specific folder to store this first script, but as you forked from a repo I designed myself, I did it for you. I named it "Hello".
|
|
Let's write our first Hello World program in PyCharm. You could create a specific folder to store this first script, but as you forked from a repo I designed myself, I did it for you. I named it "Hello".
|
|
|
|
|
|
#### Creating a python file
|
|
#### Creating a python file
|
|
|
|
|
... | | ... | |