For Windows users: the difference between the command prompt, the miniforge prompt, and the Python interpreter#
Many of you may have opened a prompt (a terminal) for the first time in this class. You will likely not need the prompt very often, only for starting Python, jupyterlab, and some other Python tool of your choice. Still, it is important to have a basic understanding of what is happening.
The command prompt (or cmd.exe)#
You find it by typing cmd in the Windows search bar:
In the command prompt, you can do many things, but the one thing you will really need is to navigate to the folder of your choice. The name of the currently active folder is always indicated at the start of the command line.
Only a few commands are necessary for this class:
help: seeing the list of commands availabledir: list the directories (folders) in the current locationcd FolderName: navigate to the folder FolderNamecd ..: navigate one folder upTAB: ask the command prompt to complete the name for you. For example, if you are lazy and type only two letters of the desired folder, typingTABmight complete it for youexit: exit the prompt (you can also simply close the window)
That’s it! The reason why you need to be able to navigate to a specific folder will be explained in the next section.
The miniforge prompt#
You find it by typing “miniforge” in the windows search bar:
You recognize that you are in a miniforge prompt by the title of the window and the (base) text before the location:
The miniforge prompt is exactly like the command prompt, BUT it has Python installed in it. All the commands explained above work in the miniforge prompt as well, but the following new commands are now available to you as well:
all the
mambacommands (mamba list,mamba install, …)opening a Python interpreter (
python, and later alsoipython,jupyter-lab)
In practice, you never open the command prompt, but always the miniforge prompt. You use it to navigate to a folder and then start a Python interpreter.
The Python interpreter#
The Python interpreter can be opened in many different ways, but the way you learn first is to start it from the miniforge prompt. The Python interpreter is recognizable by the three “greater than” signs at the beginning of the command line >>>. The Python interpreter is where the Python commands are valid.
Be aware of the context
Be aware of the interpreter your are using. To summarize:
In the command prompt, you can navigate between folders (
cd,dir, etc.).In the miniforge prompt, you can navigate between folders AND you can install python Packages (
mamba) and start Python (pythonoripython).In the Python interpreter, you can type Python commands and much much more.


