To run a module, go to the ‘run’ menu and select ‘Run Module.’ Alternatively, you can run the Python code file by pressing the ‘F5’ keyboard shortcut.