@@ -44,7 +44,7 @@ changes.
44
44
45
45
## Step 2: Create your workspace
46
46
47
- You will now create the workspace where you'll work on your development project.
47
+ You will now create the workspace to work on your development project.
48
48
49
49
1 . Return to ** Workspaces** using the top navigation bar.
50
50
@@ -63,9 +63,9 @@ You will now create the workspace where you'll work on your development project.
63
63
machine** option is selected, _ unselect_ the box. Leave the ** CPU** ,
64
64
** Memory** , ** Disk** , and ** GPU** allocations as-is.
65
65
66
- 1 . Scroll to the bottom, and click ** Create workspace** . The dialog will close,
67
- allowing you to see the main workspace page. You can track the workspace
68
- build process using the ** Build log** on the right-hand side .
66
+ 1 . Scroll to the bottom and click ** Create workspace** . The dialog will close,
67
+ allowing you to see the main workspace page. On the right-hand side, you can
68
+ track the workspace build process using the ** Build log** .
69
69
70
70
![ Create a workspace] ( ../assets/getting-started/create-workspace-pycharm.png )
71
71
@@ -79,23 +79,28 @@ purposes of this article, we'll leverage JetBrains' tutorial on how to
79
79
[ Create and run your first Python project] ( https://www.jetbrains.com/help/pycharm/creating-and-running-your-first-python-project.html ) .
80
80
81
81
1 . Under ** Browser applications** , click ** PyCharm Community** to open the IDE
82
- in your browser.
82
+ in your browser. Follow the prompts to accept the license agreement and
83
+ determine data sharing permissions.
83
84
84
- 1 . On the Welcome screen, click ** New Project** .
85
+ 1 . On the ** Welcome to PyCharm ** screen, click ** New Project** .
85
86
86
87
1 . In the window that pops up:
87
88
88
- 1 . Provide the ** Location** where PyCharm should save your files.
89
+ 1 . Provide the ** Location** where PyCharm should save your files (for this
90
+ example, we changed the highlighted portion to ` task ` , but you can name
91
+ the folder whatever you'd like))
89
92
1 . Ensure that ** New environment using Virtualenv** is selected.
90
93
1 . Make sure to ** uncheck** the option to ** Create a main.py welcome
91
94
script** .
92
95
1 . Click ** Create** to proceed.
93
96
94
97
1 . In the left-hand navigation bar, right-click on the ** root** of your folder
95
- and select ** New** > ** File** . When prompted, provide a name for your file.
98
+ (for example, if you named the folder ` task ` , you would click where it says
99
+ ** task** in the navbar) and select ** New** > ** File** . When prompted, provide
100
+ a name for your file (e.g., ` car.py ` ).
96
101
97
- 1 . The IDE automatically opens your file, allowing you to edit. Copy and paste
98
- the following
102
+ 1 . The IDE automatically opens your new, empty file, allowing you to edit. Copy
103
+ and paste the following
99
104
[ sample app from JetBrains] ( https://www.jetbrains.com/help/pycharm/creating-and-running-your-first-python-project.html#edit-file ) :
100
105
101
106
``` python
@@ -156,19 +161,33 @@ purposes of this article, we'll leverage JetBrains' tutorial on how to
156
161
157
162
## Step 5: Push your repo to GitHub
158
163
159
- The follow steps show you how to push your app to a newly created GitHub repo.
164
+ The following steps show you how to push your app to a newly created GitHub
165
+ repo.
160
166
161
167
1 . Log in to GitHub and navigate to
162
168
[ Create a new repository] ( https://github.com/new ) .
163
169
164
170
1 . Provide a ** repository name** and click ** Create repository** .
165
171
166
- 1 . Return to your workspace, run the following in your terminal to add a remote
167
- to your GitHub repo, change the primary branch name to ` main ` , and push the
168
- contents to your newly created repo:
172
+ 1 . Return to your workspace, and click ** Terminal** at the bottom.
173
+
174
+ 1 . Run the following to turn your directory into a Git repository and commit
175
+ your initial changes:
176
+
177
+ ``` console
178
+ cd ..
179
+ git init <nameOfDirectory>
180
+ cd <nameOfDirectory>
181
+ git add -A
182
+ git commit -am "Initial commit"
183
+ ```
184
+
185
+ 1 . Run the following in your terminal to add a remote to your GitHub repo,
186
+ change the primary branch name to ` main ` , and push the contents to your newly
187
+ created repo:
169
188
170
189
``` console
171
- git remote add origin https:// github.com/ <username>/<repoName>.git
190
+ git remote add origin git@ github.com: <username>/<repoName>.git
172
191
git branch -M main
173
192
git push origin main
174
193
```
0 commit comments