Last modified by Leon Poon on 2022/07/24 12:13

From version 32.1
edited by Leon Poon
on 2022/07/24 11:16
Change comment: Uploaded new attachment "image-20220724191622-10.png", version {1}
To version 34.1
edited by Leon Poon
on 2022/07/24 11:30
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,111 +1,177 @@
1 -~1. Download JetBrains Toolbox
1 +{{numberedheadings/}}
2 2  
3 +This page contains instructions you should follow so that you can use Intellij Idea (with Python Community Edition plugin) to edit and run your Python programs.
4 +
5 +{{toc/}}
6 +
7 += Download JetBrains Toolbox =
8 +
3 3  Go to [[https:~~/~~/www.jetbrains.com/toolbox-app/>>https://www.jetbrains.com/toolbox-app/]]
4 4  
5 5  Current version of Toolbox is 1.25.
6 6  
7 -Ensure that it says ".exe" on the **right half** of the Download button. Click the right half of the button to change it to .exe if it is not .exe already.
13 +~1. Ensure that it says ".exe" on the **right half** of the Download button. Click the right half of the button to change it to .exe if it is not .exe already.
8 8  
9 9  [[image:image-20220724182056-1.png]]
10 10  
11 -Click "Download". The .exe file is downloaded.
17 +2. Click "**Download**". The .exe file is downloaded.
12 12  
13 -2. Run the download by clicking on the download item button at bottom left in Chrome.
19 += Install JetBrains Toolbox =
14 14  
21 +~1. Run the installer by clicking on the downloaded item button at bottom-left in Chrome.
22 +
15 15  [[image:image-20220724182210-2.png]]
16 16  
17 -3. Run the Install
25 +The installer runs:
18 18  
19 19  [[image:image-20220724182229-3.png]]
20 20  
21 -Click "Install" button.
29 +2. Click "Install" button.
22 22  
31 +Some files are copied, then it notifies that Toolbox is installed:
32 +
23 23  [[image:image-20220724182258-4.png]]
24 24  
25 -Make sure the box next to "Run JetBrains Toolbox" is ticked.
35 +3. Make sure the box next to "Run JetBrains Toolbox" is ticked.
26 26  
27 -Click "Finish"
37 +4. Click "Finish"
28 28  
29 -4. Run Toolbox.
39 +The Toolbox runs:
30 30  
31 31  [[image:image-20220724182353-5.png]]
32 32  
43 += Run Toolbox =
44 +
33 33  **At any point in time**, if the Toolbox App disappears from your screen, you can bring it up again by clicking on the icon in System Tray:
34 34  
35 35  [[image:image-20220724183121-12.png]]
36 36  
37 -Anyway, in the main Window, click "Continue".
49 += Do One-Time Initialisation of Toolbox =
38 38  
51 +~1. In the main Window (shown above), click "Continue".
52 +
53 +Toolbox asks that you accept agreement:
54 +
39 39  [[image:image-20220724182417-6.png]]
40 40  
41 -Click "Accept License Agreement".
57 +2. Click "Accept License Agreement".
42 42  
59 +It then allows you to do some simple configuration:
60 +
43 43  [[image:image-20220724182446-7.png]]
44 44  
45 -Choose a theme, then click "Get Started".
63 +3. Choose a theme, then click "Get Started".
46 46  
47 47  You are now in the main window of Toolbox.
48 48  
49 49  [[image:image-20220724182524-8.png]]
50 50  
51 -Click "Got it" to dismiss the popup message.
69 +4. Click "Got it" to dismiss the popup message.
52 52  
53 -5. Install "IntelliJ IDEA Community Edition" by clicking on "Install" button next to this name.
71 += Install IntelliJ IDEA Community Edition =
54 54  
73 +~1. Install "IntelliJ IDEA Community Edition" by clicking on "Install" button next to this name:
74 +
55 55  [[image:image-20220724182636-9.png]]
56 56  
57 -Wait while it's downloaded and installed:
77 +2. Wait while it's downloaded and installed:
58 58  
59 59  [[image:image-20220724182659-10.png]]
60 60  
61 -Current version of IntelliJ is v2022.1.4. Click "Got It" button on the popup message after reading it.
81 +Current version of IntelliJ is v2022.1.4.
62 62  
63 63  [[image:image-20220724182745-11.png]]
64 64  
65 -6. Run IntelliJ by clicking on "IntelliJ IDEA Community Edition" in Toolbox.
85 +3. Click "Got It" button on the popup message after reading it.
66 66  
67 -Accept the Terms and click "Continue".
87 += Run IntelliJ IDEA =
68 68  
89 +~1. Run IntelliJ by clicking on "IntelliJ IDEA Community Edition" in Toolbox.
90 +
91 +It asks that you accept their terms:
92 +
69 69  [[image:image-20220724183240-13.png]]
70 70  
71 -Choose your data sharing preference:
95 +2. Accept the Terms and click "Continue".
72 72  
97 +It asks whether you want to share data:
98 +
73 73  [[image:image-20220724183310-14.png]]
74 74  
101 +3. Choose your data sharing preference by clicking "Don't Send" or "Send Anonymous Statistics".
102 +
75 75  IntelliJ is now started:
76 76  
77 77  [[image:image-20220724183344-15.png]]
78 78  
79 -7. Install Python
107 += Install Python Plugin =
80 80  
81 -Click the "Plugins" button at left side of "Welcome to Intellij IDEA" window.
109 +~1. Click the "Plugins" button at **left side **of "Welcome to Intellij IDEA" window.
82 82  
111 +The plugins-management screen comes up.
112 +
83 83  [[image:image-20220724183522-16.png]]
84 84  
85 -Type "Python" in search box.
115 +2. Type "Python" in search box.
86 86  
117 +3. Find and click on "Python Community Edition" in the list.
118 +
87 87  [[image:image-20220724183626-17.png]]
88 88  
89 -Click "Install" button when "Python Community Editon" appears on the right.
121 +4. Click "Install" button when "Python Community Editon" appears on the right.
90 90  
91 -Wait for installation to be completed:
123 +5. Wait for installation to be completed.
92 92  
125 +The button will change to a non-button and the text will change to "Installed":
126 +
93 93  [[image:image-20220724183726-18.png]]
94 94  
95 -8. Create a Python project.
129 += Create a Python project =
96 96  
97 -Go back by clicking "Projects" on the left of "Welcome to IntelliJ IDEA" window. Then click "New Project":
131 +~1. Go back by clicking "Projects" on the left of "Welcome to IntelliJ IDEA" window. Then click "New Project":
98 98  
99 99  [[image:image-20220724183840-19.png]]
100 100  
101 -Give your project a name, then select "Python" as "Language". Choose "New" "Environment" and "Python 3.10" as "Base interpreter".
135 +2. Give your project a name, then select "Python" as "Language". Choose "New" "Environment" and "Python 3.10" as "Base interpreter":
102 102  
103 103  [[image:image-20220724184100-20.png]]
104 104  
105 -Click "Create".
139 +3. Click "Create".
106 106  
107 107  It installs Python:
108 108  
109 -[[image:image-20220724184132-21.png]]
143 +[[image:image-20220724184132-21.png]]file:/C:/Users/szeleung/IdeaProjects/untitled/
110 110  
111 -Approve the Prompt:
145 +The User Account Control window pops up asking if you would like to allow Python to be installed:
146 +
147 +[[image:image-20220724190902-1.png]]
148 +
149 +4. Approve the Prompt by saying "Yes":
150 +
151 +You are now in your Python project in IntelliJ!
152 +
153 +[[image:image-20220724191036-2.png]]
154 +
155 += Create a python script =
156 +
157 +~1. Right-click on your project icon on the left, then choose "New" > "Python File":
158 +
159 +[[image:image-20220724191221-3.png]]
160 +
161 +2. Give your script file a name, then press Enter key:
162 +
163 +[[image:image-20220724191301-4.png]]
164 +
165 +Your Python script file is created and it's now ready for you to enter code!
166 +
167 +[[image:image-20220724191355-6.png]]
168 +
169 += Run your script. =
170 +
171 +~1. Right click anywhere in the code editor panel in the right of the Window. Select "Run".
172 +
173 +[[image:image-20220724191545-8.png]]
174 +
175 +Congratulations you have run your script:
176 +
177 +[[image:image-20220724191622-10.png]]