IDE
This page describes details about coding environment options you can use.
PyCharm
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:
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.
Project tool window on the left side displays your project files.
Editor on the right side, where you actually write your code, with tabs for easy navigation between open files.
Context menus open when you right-click an element of the interface or a code fragment.
Navigation bar allows you to quickly navigate the project folders and files.
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.
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.
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.
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 project and to configure the Python interpreter do the following:
Launch PyCharm
Click Open (or File > Open)
In the dialog navigate to
</path/to/where/you/have/the/code>/MIALabClick OK. MIALab is now open as PyCharm project (PyCharm created the
.ideadirectory)Click File > Settings... to open the settings dialog.
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.Confirm by clicking OK.
Open the
test_install.py(testdirectory) in the navigator.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 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:
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 video describing MATLAB and more features to help you be more productive in your exploration of this course.
MIA Lab in MATLAB
TODO
Last updated


