IDE

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

PyCharm

The PyCharm user interface
Credits: jetbrains.com

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

Follow the instructions to install PyCharm. The interface includes:

  1. Window header contains a set of widgets which provide quick access to the most popular actions: project, VCS, and run. It also allows you to open Settings.
  2. Project tool window on the left side displays your project files.
  3. Editor on the right side, where you actually write your code, with tabs for easy navigation between open files.
  4. Context menus open when you right-click an element of the interface or a code fragment.
  5. Navigation bar 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 code 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 inspections. The indicator in the top right-hand corner shows the overall status of code inspections for the entire file.
  8. Tool windows 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 bar 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 started videos to get accustomed with the interface.

MIA Lab in PyCharm

To open the MIA Lab as a 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 a 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, choose Add Local, and navigate to the files above.
  7. Confirm by clicking OK.
  8. Open the test_install.py (test directory) in the navigator.
  9. Right click in the editor > Run 'test_install'. This runs 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

The Visual Studio Code user interface
Credits: learn.microsoft.com

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

Microsoft has a detailed introductory course on 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-matlab repository for the project. Here are the various IDE panels to be familiar with:

The MATLAB user interface
Credits: ch.mathworks.com

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

MIA Lab in MATLAB

TODO