This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| modularpi:python:pythonsetting:index [2026/04/01 15:23] – created admin | modularpi:python:pythonsetting:index [2026/04/02 05:05] (current) – [2. Registering the Modular Pi Host Network] admin | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| * [[https:// | * [[https:// | ||
| - | {{ : | + | {{ : |
| ===== Visual Studio Code Configuration ===== | ===== Visual Studio Code Configuration ===== | ||
| This section explains how to write and execute programs using Visual Studio Code. | This section explains how to write and execute programs using Visual Studio Code. | ||
| Line 22: | Line 21: | ||
| * **Selecting the Interpreter**: | * **Selecting the Interpreter**: | ||
| - | {{ : | + | {{ : |
| * You can verify the operation when running the Python interpreter. | * You can verify the operation when running the Python interpreter. | ||
| - | {{ : | + | {{ : |
| ===== Visual Studio Code Remote Setup ===== | ===== Visual Studio Code Remote Setup ===== | ||
| Line 33: | Line 33: | ||
| ==== 1. Installing Remote-SSH Extension ==== | ==== 1. Installing Remote-SSH Extension ==== | ||
| + | |||
| Install the **Remote-SSH** extension from the Visual Studio Code Extensions marketplace. | Install the **Remote-SSH** extension from the Visual Studio Code Extensions marketplace. | ||
| - | {{ : | + | {{ : |
| ==== 2. Registering the Modular Pi Host Network ==== | ==== 2. Registering the Modular Pi Host Network ==== | ||
| To connect to the Modular Pi, you must register the Remote-SSH network in Visual Studio Code. | To connect to the Modular Pi, you must register the Remote-SSH network in Visual Studio Code. | ||
| Proceed with the registration as follows: | Proceed with the registration as follows: | ||
| * Press **F1** to open the Command Palette and type **Remote-SSH: | * Press **F1** to open the Command Palette and type **Remote-SSH: | ||
| - | * Enter the account and IP address of the Modular Pi to connect via SSH (e.g., | + | * Enter the account and IP address of the Modular Pi to connect via SSH (e.g., |
| * Select the **SSH configuration file (config)** to save (typically C: | * Select the **SSH configuration file (config)** to save (typically C: | ||
| Line 47: | Line 47: | ||
| The default password is **raspberry**. | The default password is **raspberry**. | ||
| - | {{ : | + | {{ : |
| ==== 3. Connecting to and Running Modular Pi via Remote-SSH ==== | ==== 3. Connecting to and Running Modular Pi via Remote-SSH ==== | ||
| Once the Modular Pi host (pi) is successfully registered, you can connect remotely in Visual Studio Code as follows: | Once the Modular Pi host (pi) is successfully registered, you can connect remotely in Visual Studio Code as follows: | ||
| Line 54: | Line 53: | ||
| * 2. Select the registered Modular Pi network IP from the list. | * 2. Select the registered Modular Pi network IP from the list. | ||
| - | {{ : | + | {{ : |
| - | \\ | + | |
| You can now access the /home/pi/ directory on the Modular Pi, create files, and write/run Python programs. | You can now access the /home/pi/ directory on the Modular Pi, create files, and write/run Python programs. | ||
| * 3. Upon successful connection, a new Visual Studio Code window for the Modular Pi host will open, and you can verify the SSH connection status. | * 3. Upon successful connection, a new Visual Studio Code window for the Modular Pi host will open, and you can verify the SSH connection status. | ||
| * 4. Click **' | * 4. Click **' | ||
| - | {{ : | + | {{ : |
| * 5. After adding a user folder, please create a Python program with a **.py** extension. Once you run the Python interpreter, | * 5. After adding a user folder, please create a Python program with a **.py** extension. Once you run the Python interpreter, | ||
| - | {{ : | + | {{ : |
| ☞ If the run button is not visible, please install the **Python Extension Pack** from the Extensions marketplace. | ☞ If the run button is not visible, please install the **Python Extension Pack** from the Extensions marketplace. | ||
| [[..: | [[..: | ||