Creating a Python Project

MindStudio allows you to create, develop, and debug Python projects, and perform remote debugging.

Creating a Python Project

  1. Navigate to the project creation window.
    • On the MindStudio welcome page, click New Project.
    • On the MindStudio project page, choose File > New > Project... from the top menu bar.
  2. In the New Project dialog box, choose Python and set project parameters, as described in Table 1.
    Table 1 Project parameters

    Parameter

    Description

    Project SDK

    Software package required by the Python SDK.

    Additional Libraries and Frameworks

    This parameter is unavailable by default. Nothing to show is displayed.

  3. Click Next to set the project parameters, as described in Table 2.
    Table 2 Project parameters

    Parameter

    Description

    Project name

    Project name (user-defined).

    Project location

    Default path for saving a project (user-defined). (For users who use MindStudio for the first time, the default value is $HOME/MindstudioProjects)

    More Settings

    Module name: module name, same as the Project name.

    Content root: path in the root directory.

    Module file location: module file path.

    Click the check box on the right of Project format. A drop-down list is displayed.
    • .idea (directory-based) (default option): During project creation, an .idea option is created to save the project information.
    • .ipr (file-based): project configuration file used to save the project configuration information.
  4. Click Finish.

    If there is already an active project in the window, a confirmation message is displayed.

    • Click This Window to open the newly created project in the current window.
    • Click New Window to open the newly created project in a new window.
  5. After the project is created, find the project directory displayed in a tree structure (subject to the actual creation result).

Importing a Python Project

  1. Import the project file.
    • On the MindStudio welcome page, click Open, select the project to be imported, and click OK.
    • On the MindStudio project page, choose File > Open... from the top menu bar or click on the menu bar to select an existing project and open it.

    If a project has code risks, the trust window is displayed when you open the project.

    • If the project source code is trusted and secure, click Trust Project. (You can select Trust projects in <workspace_directory> to trust all projects in the directory.)
    • If the project is not trusted and you only want to view the source code, click Preview in Safe Mode to preview the project in safe mode.
    • To cancel opening the project, click Don't Open.
  2. If there is already an active project in the window, a confirmation message is displayed.
    • Click This Window to open the project in the current window.
    • Click New Window to open the project in a new window.
  3. After the project is imported, find the project directory displayed in a tree structure (subject to the actual creation result).