This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| modularpi:python:pythonsetting:index [2026/04/02 04:21] – [Installing Visual Studio Code / Python] admin | modularpi:python:pythonsetting:index [2026/04/02 05:05] (current) – [2. Registering the Modular Pi Host Network] admin | ||
|---|---|---|---|
| Line 21: | 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. | ||
| + | {{ : | ||
| Line 35: | Line 36: | ||
| 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. | ||
| Line 59: | Line 59: | ||
| * 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. | ||
| [[..: | [[..: | ||