Wiki source code of Windows Intellij Python Quickstart
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
33.1 | 1 | {{numberedheadings/}} |
![]() |
22.1 | 2 | |
![]() |
34.1 | 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 | |||
![]() |
33.1 | 7 | = Download JetBrains Toolbox = |
8 | |||
![]() |
22.1 | 9 | Go to [[https:~~/~~/www.jetbrains.com/toolbox-app/>>https://www.jetbrains.com/toolbox-app/]] |
10 | |||
11 | Current version of Toolbox is 1.25. | ||
12 | |||
![]() |
33.1 | 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. |
![]() |
22.1 | 14 | |
15 | [[image:image-20220724182056-1.png]] | ||
16 | |||
![]() |
33.1 | 17 | 2. Click "**Download**". The .exe file is downloaded. |
![]() |
22.1 | 18 | |
![]() |
33.1 | 19 | = Install JetBrains Toolbox = |
![]() |
22.1 | 20 | |
![]() |
33.1 | 21 | ~1. Run the installer by clicking on the downloaded item button at bottom-left in Chrome. |
22 | |||
![]() |
22.1 | 23 | [[image:image-20220724182210-2.png]] |
24 | |||
![]() |
33.1 | 25 | The installer runs: |
![]() |
22.1 | 26 | |
27 | [[image:image-20220724182229-3.png]] | ||
28 | |||
![]() |
33.1 | 29 | 2. Click "Install" button. |
![]() |
22.1 | 30 | |
![]() |
33.1 | 31 | Some files are copied, then it notifies that Toolbox is installed: |
32 | |||
![]() |
22.1 | 33 | [[image:image-20220724182258-4.png]] |
34 | |||
![]() |
33.1 | 35 | 3. Make sure the box next to "Run JetBrains Toolbox" is ticked. |
![]() |
22.1 | 36 | |
![]() |
33.1 | 37 | 4. Click "Finish" |
![]() |
22.1 | 38 | |
![]() |
33.1 | 39 | The Toolbox runs: |
![]() |
22.1 | 40 | |
41 | [[image:image-20220724182353-5.png]] | ||
42 | |||
![]() |
33.1 | 43 | = Run Toolbox = |
44 | |||
![]() |
22.1 | 45 | **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: |
46 | |||
47 | [[image:image-20220724183121-12.png]] | ||
48 | |||
![]() |
33.1 | 49 | = Do One-Time Initialisation of Toolbox = |
![]() |
22.1 | 50 | |
![]() |
33.1 | 51 | ~1. In the main Window (shown above), click "Continue". |
52 | |||
53 | Toolbox asks that you accept agreement: | ||
54 | |||
![]() |
22.1 | 55 | [[image:image-20220724182417-6.png]] |
56 | |||
![]() |
33.1 | 57 | 2. Click "Accept License Agreement". |
![]() |
22.1 | 58 | |
![]() |
33.1 | 59 | It then allows you to do some simple configuration: |
60 | |||
![]() |
22.1 | 61 | [[image:image-20220724182446-7.png]] |
62 | |||
![]() |
33.1 | 63 | 3. Choose a theme, then click "Get Started". |
![]() |
22.1 | 64 | |
65 | You are now in the main window of Toolbox. | ||
66 | |||
67 | [[image:image-20220724182524-8.png]] | ||
68 | |||
![]() |
33.1 | 69 | 4. Click "Got it" to dismiss the popup message. |
![]() |
22.1 | 70 | |
![]() |
33.1 | 71 | = Install IntelliJ IDEA Community Edition = |
![]() |
22.1 | 72 | |
![]() |
33.1 | 73 | ~1. Install "IntelliJ IDEA Community Edition" by clicking on "Install" button next to this name: |
74 | |||
![]() |
22.1 | 75 | [[image:image-20220724182636-9.png]] |
76 | |||
![]() |
33.1 | 77 | 2. Wait while it's downloaded and installed: |
![]() |
22.1 | 78 | |
79 | [[image:image-20220724182659-10.png]] | ||
80 | |||
![]() |
33.1 | 81 | Current version of IntelliJ is v2022.1.4. |
![]() |
22.1 | 82 | |
83 | [[image:image-20220724182745-11.png]] | ||
84 | |||
![]() |
33.1 | 85 | 3. Click "Got It" button on the popup message after reading it. |
![]() |
22.1 | 86 | |
![]() |
33.1 | 87 | = Run IntelliJ IDEA = |
![]() |
22.1 | 88 | |
![]() |
33.1 | 89 | ~1. Run IntelliJ by clicking on "IntelliJ IDEA Community Edition" in Toolbox. |
90 | |||
91 | It asks that you accept their terms: | ||
92 | |||
![]() |
22.1 | 93 | [[image:image-20220724183240-13.png]] |
94 | |||
![]() |
33.1 | 95 | 2. Accept the Terms and click "Continue". |
![]() |
22.1 | 96 | |
![]() |
33.1 | 97 | It asks whether you want to share data: |
98 | |||
![]() |
22.1 | 99 | [[image:image-20220724183310-14.png]] |
100 | |||
![]() |
33.1 | 101 | 3. Choose your data sharing preference by clicking "Don't Send" or "Send Anonymous Statistics". |
102 | |||
![]() |
22.1 | 103 | IntelliJ is now started: |
104 | |||
105 | [[image:image-20220724183344-15.png]] | ||
106 | |||
![]() |
33.1 | 107 | = Install Python Plugin = |
![]() |
22.1 | 108 | |
![]() |
33.1 | 109 | ~1. Click the "Plugins" button at **left side **of "Welcome to Intellij IDEA" window. |
![]() |
22.1 | 110 | |
![]() |
33.1 | 111 | The plugins-management screen comes up. |
112 | |||
![]() |
22.1 | 113 | [[image:image-20220724183522-16.png]] |
114 | |||
![]() |
33.1 | 115 | 2. Type "Python" in search box. |
![]() |
22.1 | 116 | |
![]() |
33.1 | 117 | 3. Find and click on "Python Community Edition" in the list. |
118 | |||
![]() |
22.1 | 119 | [[image:image-20220724183626-17.png]] |
120 | |||
![]() |
33.1 | 121 | 4. Click "Install" button when "Python Community Editon" appears on the right. |
![]() |
22.1 | 122 | |
![]() |
33.1 | 123 | 5. Wait for installation to be completed. |
![]() |
22.1 | 124 | |
![]() |
33.1 | 125 | The button will change to a non-button and the text will change to "Installed": |
126 | |||
![]() |
22.1 | 127 | [[image:image-20220724183726-18.png]] |
128 | |||
![]() |
33.1 | 129 | = Create a Python project = |
![]() |
22.1 | 130 | |
![]() |
33.1 | 131 | ~1. Go back by clicking "Projects" on the left of "Welcome to IntelliJ IDEA" window. Then click "New Project": |
![]() |
22.1 | 132 | |
133 | [[image:image-20220724183840-19.png]] | ||
134 | |||
![]() |
33.1 | 135 | 2. Give your project a name, then select "Python" as "Language". Choose "New" "Environment" and "Python 3.10" as "Base interpreter": |
![]() |
22.1 | 136 | |
137 | [[image:image-20220724184100-20.png]] | ||
138 | |||
![]() |
33.1 | 139 | 3. Click "Create". |
![]() |
22.1 | 140 | |
141 | It installs Python: | ||
142 | |||
![]() |
33.1 | 143 | [[image:image-20220724184132-21.png]]file:/C:/Users/szeleung/IdeaProjects/untitled/ |
![]() |
22.1 | 144 | |
![]() |
33.1 | 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]] |