User Tools

Site Tools

한국어

modularpi:python:pythonsetting:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
modularpi:python:pythonsetting:index [2026/04/01 15:23] – created adminmodularpi:python:pythonsetting:index [2026/04/02 05:05] (current) – [2. Registering the Modular Pi Host Network] admin
Line 15: Line 15:
   * [[https://code.visualstudio.com/download|[Download Visual Studio Code (Site)]]]   * [[https://code.visualstudio.com/download|[Download Visual Studio Code (Site)]]]
  
-{{ :modularpi:python:pythonsetting:python_install.png?nolink |}} +{{ :modularpi:python:pythonsetting:0-1.png?nolink |}}
 ===== 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**: Search bar → Show and Run Commands → Python: Select Interpreter → Choose the installed Python version.   * **Selecting the Interpreter**: Search bar → Show and Run Commands → Python: Select Interpreter → Choose the installed Python version.
  
-{{ :modularpi:python:pythonsetting:vscord_project.png?nolink |}}+{{ :modularpi:python:pythonsetting:0-2.png?nolink |}}
  
   * You can verify the operation when running the Python interpreter.   * You can verify the operation when running the Python interpreter.
  
-{{ :modularpi:python:pythonsetting:run_python.png?nolink |}}+{{ :modularpi:python:pythonsetting:0-3.png?nolink |}} 
  
 ===== 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.
  
-{{ :modularpi:python:pythonsetting:remote.png?nolink |}} +{{ :modularpi:python:pythonsetting:1-1.png?nolink |}}
 ==== 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: Add New SSH Host**.   * Press **F1** to open the Command Palette and type **Remote-SSH: Add New SSH Host**.
-  * Enter the account and IP address of the Modular Pi to connect via SSH (e.g., pi@192.168.0.6).+  * Enter the account and IP address of the Modular Pi to connect via SSH (e.g., admin@192.168.xxx.xxx).
   * Select the **SSH configuration file (config)** to save (typically C:\Users\<Username>\.ssh\config).   * Select the **SSH configuration file (config)** to save (typically C:\Users\<Username>\.ssh\config).
  
Line 47: Line 47:
 The default password is **raspberry**. The default password is **raspberry**.
  
-{{ :modularpi:python:pythonsetting:ssh_connectpi.png?nolink |}} +{{ :modularpi:python:pythonsetting:2-1.png?nolink |}}
 ==== 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.
  
-{{ :modularpi:python:pythonsetting:ssh_init.png?nolink |}} +{{ :modularpi:python:pythonsetting:3-1.png?nolink |}} 
-\\+
 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 **'Open Folder'** → Open the **/home/pi/** directory.   * 4. Click **'Open Folder'** → Open the **/home/pi/** directory.
  
-{{ :modularpi:python:pythonsetting:host_contact.png?nolink |}}+{{ :modularpi:python:pythonsetting:3-2.png?nolink |}}
  
   * 5. After adding a user folder, please create a Python program with a **.py** extension. Once you run the Python interpreter, you will see the program in that folder executing correctly.   * 5. After adding a user folder, please create a Python program with a **.py** extension. Once you run the Python interpreter, you will see the program in that folder executing correctly.
  
-{{ :modularpi:python:pythonsetting:finalrun.png?nolink |}}+{{ :modularpi:python:pythonsetting:3-3.png?nolink |}}
  
 ☞ 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.
  
 [[..:index|CFNET I/O Development Using Python]] [[..:index|CFNET I/O Development Using Python]]
modularpi/python/pythonsetting/index.1775057007.txt.gz · Last modified: by admin