<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Install Software &#8211; sekol.ninja</title>
	<atom:link href="https://sekol.ninja/tag/install-software/feed/" rel="self" type="application/rss+xml" />
	<link>https://sekol.ninja</link>
	<description></description>
	<lastBuildDate>Tue, 09 Jun 2026 17:08:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Installing Visual Studio Code on a Raspberry Pi for Python Development</title>
		<link>https://sekol.ninja/installing-visual-studio-code-on-a-raspberry-pi-for-python-development/</link>
		
		<dc:creator><![CDATA[Michael Sekol]]></dc:creator>
		<pubDate>Tue, 09 Jun 2026 16:52:48 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Install on Raspberry Pi]]></category>
		<category><![CDATA[Install Software]]></category>
		<category><![CDATA[VC Code for Raspberry Pi]]></category>
		<category><![CDATA[Visual Studio Code]]></category>
		<guid isPermaLink="false">https://sekol.ninja/?p=10624</guid>

					<description><![CDATA[A Beginner-Friendly, Step-by-Step Guide Introduction If you have ever opened your Raspberry Pi&#8217;s Programming menu, you probably noticed an application called Thonny [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">A Beginner-Friendly, Step-by-Step Guide</p>



<!-- ── Introduction ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Introduction</h2>

<p style="margin-bottom:1.2em !important;">If you have ever opened your Raspberry Pi&#8217;s Programming menu, you probably noticed an application called <strong>Thonny</strong> already sitting there, ready to go. Thonny is a simple Python editor that ships with Raspberry Pi OS, and for absolute beginners writing their very first lines of Python, it does the job. It has a big Run button, a built-in shell, and almost nothing else to distract you.</p>

<p style="margin-bottom:1.2em !important;">So why would you bother installing something different?</p>

<p style="margin-bottom:1.2em !important;">The short answer is that Thonny is a <em>learning tool</em>, and Visual Studio Code (VS Code) is a <em>professional development environment</em>. The gap between the two is significant, and the sooner you make the switch, the sooner you start building the habits and skills that carry over into real-world software development.</p>

<!-- ── What Is VS Code ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">What Is Visual Studio Code?</h2>

<p style="margin-bottom:1.2em !important;">Visual Studio Code is a free, open-source code editor created by Microsoft. It runs on Windows, macOS, and Linux, which means it also runs on Raspberry Pi OS (a Debian-based Linux distribution). Despite being free, it is the most popular code editor in the world, used by millions of professional developers every day.</p>

<p style="margin-bottom:1.2em !important;">VS Code is <strong>not</strong> the same thing as Visual Studio (the full IDE). Think of VS Code as a lightweight, fast editor that you can customize with extensions to support almost any programming language, framework, or workflow you can imagine. It starts small and grows with you.</p>

<!-- ── Why VS Code ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Why VS Code Instead of Thonny?</h2>

<p style="margin-bottom:1.2em !important;">Thonny was designed to teach beginners the basics of Python. That narrow focus is both its strength and its limitation. Here is what Thonny <strong>does not</strong> give you:</p>

<ul style="margin-top:0.8em !important;margin-bottom:1.2em !important;">
<li style="margin-bottom:0.6em !important;"><strong>No IntelliSense or intelligent code completion.</strong> Thonny offers basic autocomplete, but it cannot predict what you need or show you function signatures and documentation as you type.</li>
<li style="margin-bottom:0.6em !important;"><strong>No built-in terminal.</strong> Professional developers run commands, install packages, and manage files from inside their editor. Thonny keeps you locked into its own shell.</li>
<li style="margin-bottom:0.6em !important;"><strong>No extension ecosystem.</strong> You cannot add Git integration, linters, formatters, database viewers, or support for other languages.</li>
<li style="margin-bottom:0.6em !important;"><strong>No multi-file project support.</strong> Real projects are made of many files organized in folders. Thonny is built around editing one file at a time.</li>
<li style="margin-bottom:0.6em !important;"><strong>No integrated debugging for complex projects.</strong> Thonny has a basic debugger, but it lacks breakpoint conditions, watch expressions, and call stack navigation.</li>
</ul>

<p style="margin-bottom:1.2em !important;">VS Code solves all of these problems and adds capabilities you didn&#8217;t know you needed:</p>

<ul style="margin-top:0.8em !important;margin-bottom:1.2em !important;">
<li style="margin-bottom:0.6em !important;"><strong>IntelliSense</strong> provides real-time code suggestions, function signatures, parameter hints, and inline documentation as you type.</li>
<li style="margin-bottom:0.6em !important;"><strong>Integrated terminal</strong> lets you run Python scripts, install packages with pip, and use Git without leaving the editor.</li>
<li style="margin-bottom:0.6em !important;"><strong>Extensions</strong> let you add Python linting (Pylint, Flake8), auto-formatting (Black, autopep8), Git visualization (GitLens), and thousands more with a single click.</li>
<li style="margin-bottom:0.6em !important;"><strong>Project-aware file explorer</strong> shows your entire project folder tree in a sidebar, making it easy to navigate between files.</li>
<li style="margin-bottom:0.6em !important;"><strong>Professional debugging</strong> with breakpoints, conditional breakpoints, variable inspection, call stacks, and a debug console.</li>
<li style="margin-bottom:0.6em !important;"><strong>Built-in Git support</strong> for version control, viewing diffs, staging changes, and committing code directly from the sidebar.</li>
<li style="margin-bottom:0.6em !important;"><strong>Industry standard</strong> &mdash; learning VS Code now means you already know the tool used at most tech companies, bootcamps, and universities.</li>
</ul>

<!-- Concept callout: Bottom Line -->
<div style="display:flex;border:1px solid #7B2D8E;border-radius:4px;overflow:hidden;margin:1.5em 0 !important;">
<div style="width:6px;min-width:6px;background:#7B2D8E;"></div>
<div style="background:#F3E8F9;padding:16px 20px !important;flex:1;">
<p style="margin:0 0 0.5em 0 !important;"><strong style="color:#7B2D8E;">&#x1F4A1; Bottom Line</strong></p>
<p style="margin:0 !important;">Thonny is training wheels. VS Code is the bicycle. Both serve a purpose, but you will go much further and much faster once you make the switch. Everything you learn in VS Code on your Raspberry Pi transfers directly to any other computer or operating system.</p>
</div>
</div>

<!-- ── Prerequisites ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Prerequisites</h2>

<p style="margin-bottom:1.2em !important;">Before you begin, make sure you have the following:</p>

<ul style="margin-top:0.8em !important;margin-bottom:1.2em !important;">
<li style="margin-bottom:0.6em !important;"><strong>Raspberry Pi 4</strong> (4 GB or more recommended) <strong>or Raspberry Pi 5</strong></li>
<li style="margin-bottom:0.6em !important;"><strong>Raspberry Pi OS</strong> installed and working</li>
<li style="margin-bottom:0.6em !important;"><strong>An active internet connection</strong></li>
<li style="margin-bottom:0.6em !important;"><strong>A keyboard, mouse, and monitor</strong> connected to the Pi</li>
</ul>

<!-- Note callout -->
<div style="display:flex;border:1px solid #E65100;border-radius:4px;overflow:hidden;margin:1.5em 0 !important;">
<div style="width:6px;min-width:6px;background:#E65100;"></div>
<div style="background:#FFF3E0;padding:16px 20px !important;flex:1;">
<p style="margin:0 0 0.5em 0 !important;"><strong style="color:#E65100;">&#x26A0;&#xFE0F; Note</strong></p>
<p style="margin:0 !important;">VS Code is a full desktop application, and it runs best on a Raspberry Pi 4 or 5 with at least 4 GB of RAM. Older models or 1 GB/2 GB boards may struggle with performance.</p>
</div>
</div>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Step 1 ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Step 1: Update the Operating System</h2>

<p style="margin-bottom:1.2em !important;">Before installing any new software, you should always update your operating system first. Updates ensure you have the latest security patches, bug fixes, and package information. If you skip this step, you might install an outdated version of a program, or the installation might fail entirely because your system does not know where to find the latest packages.</p>

<p style="margin-bottom:1.2em !important;">Open a Terminal window (you can find it in the taskbar at the top of the screen or in the Accessories menu) and type the following commands one at a time, pressing Enter after each one:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">sudo apt update
sudo apt full-upgrade -y
sudo reboot</pre>

<!-- Concept callout: command explanation -->
<div style="display:flex;border:1px solid #7B2D8E;border-radius:4px;overflow:hidden;margin:1.5em 0 !important;">
<div style="width:6px;min-width:6px;background:#7B2D8E;"></div>
<div style="background:#F3E8F9;padding:16px 20px !important;flex:1;">
<p style="margin:0 0 0.5em 0 !important;"><strong style="color:#7B2D8E;">&#x1F4D6; What Do These Commands Mean?</strong></p>
<p style="margin:0.8em 0 0 0 !important;"><strong><code>sudo</code></strong> stands for &#8220;Superuser Do.&#8221; It gives you temporary administrator (root) privileges to make system-level changes. Without <code>sudo</code>, the system would block you from installing or updating software because those actions affect all users on the machine.</p>
<p style="margin:0.8em 0 0 0 !important;"><strong><code>apt</code></strong> stands for &#8220;Advanced Package Tool.&#8221; It is the package manager for Debian-based Linux systems like Raspberry Pi OS. Think of it as an app store you control from the command line. It knows how to download, install, update, and remove software packages.</p>
<p style="margin:0.8em 0 0 0 !important;"><strong><code>apt update</code></strong> tells apt to refresh its list of available software and versions from the internet. It does not install anything &mdash; it just checks what is available.</p>
<p style="margin:0.8em 0 0 0 !important;"><strong><code>apt full-upgrade -y</code></strong> downloads and installs all available updates for every package on your system. The <code>-y</code> flag means &#8220;yes to all prompts,&#8221; so you do not have to confirm each update manually.</p>
<p style="margin:0.8em 0 0 0 !important;"><strong><code>reboot</code></strong> restarts the Raspberry Pi so that any kernel or system-level updates take effect.</p>
</div>
</div>

<p style="margin-bottom:1.2em !important;">Wait for the Raspberry Pi to restart and log back in before continuing.</p>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Step 2 ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Step 2: Verify Your Raspberry Pi Model</h2>

<p style="margin-bottom:1.2em !important;">This is an optional but helpful step. You can check exactly which Raspberry Pi model you are using by running:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">cat /proc/device-tree/model</pre>

<p style="margin-bottom:1.2em !important;">You should see output similar to this:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">Raspberry Pi 5 Model B Rev 1.0</pre>

<!-- Concept callout -->
<div style="display:flex;border:1px solid #7B2D8E;border-radius:4px;overflow:hidden;margin:1.5em 0 !important;">
<div style="width:6px;min-width:6px;background:#7B2D8E;"></div>
<div style="background:#F3E8F9;padding:16px 20px !important;flex:1;">
<p style="margin:0 0 0.5em 0 !important;"><strong style="color:#7B2D8E;">&#x1F4D6; What Does This Command Mean?</strong></p>
<p style="margin:0.8em 0 0 0 !important;"><strong><code>cat</code></strong> is short for &#8220;concatenate.&#8221; It is a command that reads a file and prints its contents to the screen. In this case, the file <code>/proc/device-tree/model</code> is a special system file that stores your Pi&#8217;s hardware identity. You are not opening a normal document &mdash; you are asking Linux to tell you what hardware it is running on.</p>
</div>
</div>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Step 3 ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Step 3: Install Visual Studio Code</h2>

<p style="margin-bottom:1.2em !important;">Now that your system is up to date, you can install VS Code. Raspberry Pi OS includes VS Code in its official software repositories, so the installation is a single command:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">sudo apt install code -y</pre>

<!-- Concept callout -->
<div style="display:flex;border:1px solid #7B2D8E;border-radius:4px;overflow:hidden;margin:1.5em 0 !important;">
<div style="width:6px;min-width:6px;background:#7B2D8E;"></div>
<div style="background:#F3E8F9;padding:16px 20px !important;flex:1;">
<p style="margin:0 0 0.5em 0 !important;"><strong style="color:#7B2D8E;">&#x1F4D6; What Does This Command Mean?</strong></p>
<p style="margin:0.8em 0 0 0 !important;">You already know <code>sudo</code> (run as administrator) and <code>apt</code> (the package manager). The word <strong><code>install</code></strong> tells apt you want to add new software. The word <strong><code>code</code></strong> is the package name for Visual Studio Code in the Raspberry Pi OS repository. Finally, the <code>-y</code> flag automatically answers &#8220;yes&#8221; to any confirmation prompts so the installation proceeds without interruption.</p>
</div>
</div>

<p style="margin-bottom:1.2em !important;">The installation will take a minute or two depending on your internet speed. When it finishes, VS Code is ready to use.</p>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Step 4 ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Step 4: Launch Visual Studio Code</h2>

<p style="margin-bottom:1.2em !important;">You can start VS Code in two ways:</p>

<h3 style="color:#555;margin-top:1.5em !important;margin-bottom:0.6em !important;">Option A: From the Terminal</h3>

<p style="margin-bottom:1.2em !important;">Type the following command and press Enter:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">code</pre>

<h3 style="color:#555;margin-top:1.5em !important;margin-bottom:0.6em !important;">Option B: From the Desktop Menu</h3>

<p style="margin-bottom:1.2em !important;">Click the Raspberry Pi menu icon in the top-left corner of your screen, navigate to <strong>Programming</strong>, and click <strong>Visual Studio Code</strong>.</p>

<p style="margin-bottom:1.2em !important;">Either method opens the same application. When VS Code launches for the first time, you will see a Welcome tab with helpful links and tips. Feel free to explore it or close it.</p>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Step 5 ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Step 5: Install the Python Extension</h2>

<p style="margin-bottom:1.2em !important;">Out of the box, VS Code is a general-purpose editor. To unlock its full Python capabilities, you need to install the official Python extension. This is what transforms VS Code from a plain text editor into a Python powerhouse.</p>

<ol style="margin-top:0.8em !important;margin-bottom:1.2em !important;">
<li style="margin-bottom:0.6em !important;">Open Visual Studio Code.</li>
<li style="margin-bottom:0.6em !important;">Click the <strong>Extensions</strong> icon on the left sidebar. It looks like four small squares with one square detached.</li>
<li style="margin-bottom:0.6em !important;">In the search bar at the top, type <strong>Python</strong>.</li>
<li style="margin-bottom:0.6em !important;">Find the extension called <strong>Python</strong> published by <strong>Microsoft</strong> (it will be the first result with millions of installs). Click <strong>Install</strong>.</li>
</ol>

<p style="margin-bottom:1.2em !important;">Once installed, this extension provides:</p>

<ul style="margin-top:0.8em !important;margin-bottom:1.2em !important;">
<li style="margin-bottom:0.6em !important;"><strong>Syntax highlighting</strong> &mdash; Python keywords, strings, and functions are displayed in different colors so your code is easier to read.</li>
<li style="margin-bottom:0.6em !important;"><strong>Code completion (IntelliSense)</strong> &mdash; as you type, VS Code suggests variable names, functions, and methods with documentation popups.</li>
<li style="margin-bottom:0.6em !important;"><strong>Debugging tools</strong> &mdash; set breakpoints, step through code line by line, and inspect variables in real time.</li>
<li style="margin-bottom:0.6em !important;"><strong>Virtual environment support</strong> &mdash; VS Code detects and activates Python virtual environments automatically.</li>
<li style="margin-bottom:0.6em !important;"><strong>Code navigation</strong> &mdash; jump to function definitions, find all references, and rename variables across your entire project.</li>
</ul>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Step 6 ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Step 6: Verify Python Is Installed</h2>

<p style="margin-bottom:1.2em !important;">Raspberry Pi OS comes with Python pre-installed, but it is good practice to verify the version. Open a Terminal and run:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">python3 --version</pre>

<p style="margin-bottom:1.2em !important;">You should see output like this:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">Python 3.11.x</pre>

<p style="margin-bottom:1.2em !important;">The exact version number may vary depending on your Raspberry Pi OS version. As long as you see Python 3.x, you are good to go.</p>

<!-- Tip callout -->
<div style="display:flex;border:1px solid #00796B;border-radius:4px;overflow:hidden;margin:1.5em 0 !important;">
<div style="width:6px;min-width:6px;background:#00796B;"></div>
<div style="background:#E0F2F1;padding:16px 20px !important;flex:1;">
<p style="margin:0 0 0.5em 0 !important;"><strong style="color:#00796B;">&#x1F4A1; Tip</strong></p>
<p style="margin:0 !important;">On Raspberry Pi OS, always use the command <code>python3</code>, not <code>python</code>. Some Linux systems still associate the plain <code>python</code> command with the older Python 2, which is no longer maintained.</p>
</div>
</div>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Step 7 ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Step 7: Create a Test Project</h2>

<p style="margin-bottom:1.2em !important;">Let&#8217;s create a simple project folder and a Python file to make sure everything is working. In your Terminal, run the following commands:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">mkdir ~/python-test
cd ~/python-test</pre>

<!-- Concept callout -->
<div style="display:flex;border:1px solid #7B2D8E;border-radius:4px;overflow:hidden;margin:1.5em 0 !important;">
<div style="width:6px;min-width:6px;background:#7B2D8E;"></div>
<div style="background:#F3E8F9;padding:16px 20px !important;flex:1;">
<p style="margin:0 0 0.5em 0 !important;"><strong style="color:#7B2D8E;">&#x1F4D6; What Do These Commands Mean?</strong></p>
<p style="margin:0.8em 0 0 0 !important;"><strong><code>mkdir</code></strong> stands for &#8220;make directory.&#8221; It creates a new folder. The <code>~</code> symbol (called a tilde) is a shortcut that means &#8220;my home folder.&#8221; So <code>mkdir ~/python-test</code> creates a folder called <code>python-test</code> inside your home directory.</p>
<p style="margin:0.8em 0 0 0 !important;"><strong><code>cd</code></strong> stands for &#8220;change directory.&#8221; It moves you into the folder you just created. After running <code>cd</code>, any files you create will be saved inside that folder.</p>
</div>
</div>

<p style="margin-bottom:1.2em !important;">Now create a Python file using the nano text editor:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">nano hello.py</pre>

<p style="margin-bottom:1.2em !important;">This opens a simple text editor inside the Terminal. Type the following line of Python code:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">print("Hello from Raspberry Pi!")</pre>

<p style="margin-bottom:1.2em !important;">Save and close the file:</p>

<ol style="margin-top:0.8em !important;margin-bottom:1.2em !important;">
<li style="margin-bottom:0.6em !important;">Press <strong>Ctrl + O</strong> (that is the letter O, not zero) to save.</li>
<li style="margin-bottom:0.6em !important;">Press <strong>Enter</strong> to confirm the filename.</li>
<li style="margin-bottom:0.6em !important;">Press <strong>Ctrl + X</strong> to exit nano.</li>
</ol>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Step 8 ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Step 8: Open the Project in VS Code</h2>

<p style="margin-bottom:1.2em !important;">Now open your project folder in VS Code. From your Terminal, run:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">code ~/python-test</pre>

<p style="margin-bottom:1.2em !important;">VS Code will open with your <code>python-test</code> folder loaded in the sidebar. You should see your <code>hello.py</code> file listed. Click on it to open it in the editor.</p>

<!-- Tip callout -->
<div style="display:flex;border:1px solid #00796B;border-radius:4px;overflow:hidden;margin:1.5em 0 !important;">
<div style="width:6px;min-width:6px;background:#00796B;"></div>
<div style="background:#E0F2F1;padding:16px 20px !important;flex:1;">
<p style="margin:0 0 0.5em 0 !important;"><strong style="color:#00796B;">&#x1F4A1; Tip</strong></p>
<p style="margin:0 !important;">Always open a <em>folder</em> in VS Code rather than individual files. When VS Code has a folder open, it can detect virtual environments, find related files, provide better IntelliSense, and use project-level settings.</p>
</div>
</div>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Step 9 ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Step 9: Select the Python Interpreter</h2>

<p style="margin-bottom:1.2em !important;">VS Code needs to know which Python installation to use. This is called selecting the <strong>interpreter</strong>.</p>

<ol style="margin-top:0.8em !important;margin-bottom:1.2em !important;">
<li style="margin-bottom:0.6em !important;">Press <strong>Ctrl + Shift + P</strong> to open the Command Palette. This is a search bar that lets you find any VS Code command.</li>
<li style="margin-bottom:0.6em !important;">Type <strong>Python: Select Interpreter</strong> and click the matching option.</li>
<li style="margin-bottom:0.6em !important;">Select <code>/usr/bin/python3</code> from the list. If you have a virtual environment set up (covered later in this guide), you can choose that instead.</li>
</ol>

<p style="margin-bottom:1.2em !important;">Once selected, VS Code will display the interpreter in the bottom status bar so you always know which Python version your project is using.</p>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Step 10 ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Step 10: Run the Program</h2>

<h3 style="color:#555;margin-top:1.5em !important;margin-bottom:0.6em !important;">Option A: Using VS Code</h3>

<p style="margin-bottom:1.2em !important;">With <code>hello.py</code> open in the editor, click the <strong>Run</strong> button (the &#x25B6; play icon) in the upper-right corner of the editor. VS Code will open its built-in terminal at the bottom of the screen and run your script.</p>

<h3 style="color:#555;margin-top:1.5em !important;margin-bottom:0.6em !important;">Option B: Using the Terminal</h3>

<p style="margin-bottom:1.2em !important;">If you prefer, you can run the script directly from any Terminal window:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">python3 hello.py</pre>

<p style="margin-bottom:1.2em !important;">Either way, you should see the following output:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">Hello from Raspberry Pi!</pre>

<!-- Checkpoint callout -->
<div style="display:flex;border:1px solid #2E7D32;border-radius:4px;overflow:hidden;margin:1.5em 0 !important;">
<div style="width:6px;min-width:6px;background:#2E7D32;"></div>
<div style="background:#E8F5E9;padding:16px 20px !important;flex:1;">
<p style="margin:0 0 0.5em 0 !important;"><strong style="color:#2E7D32;">&#x2705; Checkpoint</strong></p>
<p style="margin:0 !important;">If you see the message above, congratulations! You have successfully installed VS Code, configured it for Python, and run your first program. The remaining sections are optional but highly recommended.</p>
</div>
</div>

<hr style="border:none;border-top:2px solid #2E75B6;margin:2.5em 0 !important;">

<!-- ── Optional: Virtual Environment ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Optional: Create a Virtual Environment</h2>

<p style="margin-bottom:1.2em !important;">A virtual environment is an isolated copy of Python that lives inside your project folder. It lets you install packages for one project without affecting any other project or the system-wide Python installation. This is considered a best practice in Python development.</p>

<p style="margin-bottom:1.2em !important;">First, install the virtual environment package:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">sudo apt install python3-venv -y</pre>

<p style="margin-bottom:1.2em !important;">Then create and activate a virtual environment inside your project folder:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">cd ~/python-test
python3 -m venv .venv
source .venv/bin/activate</pre>

<!-- Concept callout -->
<div style="display:flex;border:1px solid #7B2D8E;border-radius:4px;overflow:hidden;margin:1.5em 0 !important;">
<div style="width:6px;min-width:6px;background:#7B2D8E;"></div>
<div style="background:#F3E8F9;padding:16px 20px !important;flex:1;">
<p style="margin:0 0 0.5em 0 !important;"><strong style="color:#7B2D8E;">&#x1F4D6; What Do These Commands Mean?</strong></p>
<p style="margin:0.8em 0 0 0 !important;"><strong><code>python3 -m venv .venv</code></strong> tells Python to run its built-in <code>venv</code> module and create a virtual environment in a hidden folder called <code>.venv</code> inside your project directory. The dot at the beginning of <code>.venv</code> makes it a hidden folder in Linux (it will not clutter your file listing).</p>
<p style="margin:0.8em 0 0 0 !important;"><strong><code>source .venv/bin/activate</code></strong> runs the activation script. After activation, your terminal prompt will change to show <code>(.venv)</code> at the beginning, which tells you the virtual environment is active. Any <code>pip install</code> commands you run now will install packages only inside this environment.</p>
</div>
</div>

<p style="margin-bottom:1.2em !important;">You should see your terminal prompt change to something like:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">(.venv) pi@raspberrypi:~/python-test $</pre>

<p style="margin-bottom:1.2em !important;">Now you can install packages safely. For example:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">pip install requests</pre>

<p style="margin-bottom:1.2em !important;">VS Code will usually detect the virtual environment automatically and ask if you want to use it as your interpreter. Click <strong>Yes</strong> when prompted.</p>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Optional: Git ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Optional: Install Git</h2>

<p style="margin-bottom:1.2em !important;">Git is a version control system that tracks changes to your code over time. It lets you save snapshots of your project, undo mistakes, collaborate with others, and share your code on platforms like GitHub. If you are learning to code, learning Git early is one of the best investments you can make.</p>

<p style="margin-bottom:1.2em !important;">Install Git:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">sudo apt install git -y</pre>

<p style="margin-bottom:1.2em !important;">Configure your identity (Git uses this to label your commits):</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">git config --global user.name "Your Name"
git config --global user.email "you@example.com"</pre>

<p style="margin-bottom:1.2em !important;">Verify the installation:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">git --version</pre>

<p style="margin-bottom:1.2em !important;">You should see output like:</p>

<pre style="background:#F0F0F0;border:1px solid #CCC;border-radius:4px;padding:14px 18px !important;font-family:'Consolas','Courier New',monospace;font-size:0.95em;line-height:1.6;overflow-x:auto;margin-bottom:1.2em !important;">git version 2.39.x</pre>

<p style="margin-bottom:1.2em !important;">Once Git is installed, VS Code&#8217;s built-in <strong>Source Control</strong> panel (the branch icon on the left sidebar) will automatically detect Git repositories and let you stage, commit, and push changes without leaving the editor.</p>

<hr style="border:none;border-top:1px solid #ddd;margin:2.5em 0 !important;">

<!-- ── Recommended Extensions ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Recommended VS Code Extensions</h2>

<p style="margin-bottom:1.2em !important;">Now that VS Code is set up, here are some extensions worth installing from the Extensions marketplace to further improve your workflow:</p>

<ul style="margin-top:0.8em !important;margin-bottom:1.2em !important;">
<li style="margin-bottom:0.6em !important;"><strong>Python</strong> (Microsoft) &mdash; the core extension you already installed. Provides IntelliSense, debugging, and environment management.</li>
<li style="margin-bottom:0.6em !important;"><strong>Pylance</strong> (Microsoft) &mdash; a faster, more powerful Python language server that improves type checking, auto-imports, and code navigation. It is often installed automatically alongside the Python extension.</li>
<li style="margin-bottom:0.6em !important;"><strong>GitHub Pull Requests and Issues</strong> (GitHub) &mdash; if you use GitHub, this extension lets you create pull requests, review code, and manage issues directly inside VS Code.</li>
<li style="margin-bottom:0.6em !important;"><strong>GitLens</strong> (GitKraken) &mdash; adds powerful Git annotations, blame info, and history visualization so you can see who changed what and when.</li>
<li style="margin-bottom:0.6em !important;"><strong>Docker</strong> (Microsoft) &mdash; optional. If you work with containers, this extension makes managing Docker images and containers much easier.</li>
</ul>

<hr style="border:none;border-top:2px solid #2E75B6;margin:2.5em 0 !important;">

<!-- ── Summary ── -->

<h2 style="color:#2E75B6;margin-top:2em !important;margin-bottom:0.8em !important;">Summary</h2>

<p style="margin-bottom:1.2em !important;">After completing this guide, your Raspberry Pi now has:</p>

<ul style="margin-top:0.8em !important;margin-bottom:1.2em !important;">
<li style="margin-bottom:0.6em !important;">Visual Studio Code installed and configured</li>
<li style="margin-bottom:0.6em !important;">The Python extension providing IntelliSense, debugging, and code navigation</li>
<li style="margin-bottom:0.6em !important;">A verified Python installation ready for development</li>
<li style="margin-bottom:0.6em !important;">Optional virtual environment support for isolated project dependencies</li>
<li style="margin-bottom:0.6em !important;">Optional Git integration for version control</li>
</ul>

<p style="margin-bottom:1.2em !important;">This setup closely mirrors the environment used by professional Python developers working on Linux servers, cloud systems, and production applications. Everything you learn here transfers directly to any computer running VS Code, regardless of operating system.</p>

<!-- Tip callout: What's Next -->
<div style="display:flex;border:1px solid #00796B;border-radius:4px;overflow:hidden;margin:1.5em 0 !important;">
<div style="width:6px;min-width:6px;background:#00796B;"></div>
<div style="background:#E0F2F1;padding:16px 20px !important;flex:1;">
<p style="margin:0 0 0.5em 0 !important;"><strong style="color:#00796B;">&#x1F680; What&#8217;s Next?</strong></p>
<p style="margin:0 !important;">Start building! Open VS Code, create a new Python file, and write something. Experiment with the IntelliSense suggestions, try setting a breakpoint, and explore the integrated terminal. The best way to learn a tool is to use it.</p>
</div>
</div>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: sekol.ninja @ 2026-09-09 13:09:45 by W3 Total Cache
-->