IDE

This page describes details about coding environment options you can use.

PyCharm

We recommend using JetBrains PyCharmarrow-up-right to program in Python. The community edition is open-source and sufficient for our purpose, but you can also access the professional versionarrow-up-right with a student ID.

Follow the instructionsarrow-up-right to install PyCharm. The interface includes:

  1. Window headerarrow-up-right contains a set of widgets which provide quick access to the most popular actions: project, VCS, and run. It also allows you to open Settingsarrow-up-right.

  2. Project tool windowarrow-up-right on the left side displays your project files.

  3. Editorarrow-up-right on the right side, where you actually write your code, with tabs for easy navigation between open files.

  4. Context menusarrow-up-right open when you right-click an element of the interface or a code fragment.

  5. Navigation bararrow-up-right allows you to quickly navigate the project folders and files.

  6. Gutter, the vertical stripe next to the editor, shows the breakpoints you have, and provides a convenient way to navigate through the codearrow-up-right hierarchy like going to definition/declaration.

  7. Scrollbar, on the right side of the editor, constantly monitoring the quality of your code by running code inspectionsarrow-up-right. The indicator in the top right-hand corner shows the overall status of code inspections for the entire file.

  8. Tool windowsarrow-up-right are specialized windows attached to the bottom and the sides of the workspace. They provide access to typical tasks such as project management, source code search and navigation, integration with version control systems, running, testing, debugging, and so on.

  9. The status bararrow-up-right indicates the status of your project and the entire IDE, and shows various warnings and information messages like file encoding, line separator, inspection profile, and so on.

For more help, watch the getting startedarrow-up-right videos to get accustomed with the interface.

MIA Lab in PyCharm

To open the MIA Lab as project and to configure the Python interpreter do the following:

  1. Launch PyCharm

  2. Click Open (or File > Open)

  3. In the dialog navigate to </path/to/where/you/have/the/code>/MIALab

  4. Click OK. MIALab is now open as PyCharm project (PyCharm created the .idea directory)

  5. Click File > Settings... to open the settings dialog.

  6. Navigate to Project: MIALab > Python Interpreter. Select the Python interpreter </path/to/your/anaconda/installation>/envs/mialab/bin/python (on Linux and macOS) or <\path\to\your\anaconda\installation>\envs\mialab\python.exe (on Windows). If the interpreter is not available in the combo box, click the gear icon and choose Add Local and navigate the the files above.

  7. Confirm by clicking OK.

  8. Open the test_install.py (testdirectory) in the navigator.

  9. Right click in the editor > Run 'test_install'. Runs the test_install and adds a configuration (see top right corner) to the project. You can add configurations manually under Run > Edit Configurations...

Visual Studio Code

Visual Studio Code (VS Code) is a powerful code editor designed for developers. Its interface is user-friendly and includes the following panels:

  • Activity Bar: Located on the side, it provides quick access to different views like Explorer, Search, Source Control, Run and Debug, and Extensions.

  • Side Bar: Displays different panels depending on the selected view from the Activity Bar, such as the file explorer or source control.

  • Editor: The main area where you write and edit your code. It supports multiple tabs, allowing you to work on several files simultaneously.

  • Status Bar: Found at the bottom, it shows information about the current file, such as encoding, line endings, and language mode.

  • Command Palette: A powerful tool accessible via a keyboard shortcut, allowing you to execute commands quickly without navigating through menus.

  • Integrated Terminal: Embedded within the editor, it lets you run command-line tasks without leaving the coding environment.

Microsoft has a detailed introductory course arrow-up-righton Visual Studio Code, describing all the relevant features you would likely use in this course.

MIA Lab in VS Code

TODO

MATLAB

The MATLAB Integrated Development Environment (IDE) from MathWorks is an easy-to-use tool for interactive programming. You will use this IDE only in the situation that you follow the mia-matlabarrow-up-right repository for the project. Here are the various IDE panels to be familiar with:

  • Home Tab: Provides quick access to common tasks like creating scripts, managing files, and setting preferences.

  • Editor Tab: A dedicated space for writing, editing, and debugging code with syntax highlighting and code folding.

  • Plots Tab: Offers tools for creating and customizing visualizations.

  • Apps Tab: Contains a collection of interactive applications for tasks such as data analysis and signal processing.

  • Workspace Panel: Displays variables and their values, allowing for easy data management.

  • Command Window: The main area for executing commands and running scripts.

  • Current Folder Panel: Helps navigate and manage project files.

Here is an introductory videoarrow-up-right describing MATLAB and more features to help you be more productive in your exploration of this course.

MIA Lab in MATLAB

TODO

Last updated