๐Ÿ Introduction to Python
Module 1 ยท Topic 4

IDE & Code Editor Setup

Choose and configure the right IDE or code editor for Python development โ€” from VS Code for general use to Jupyter for data science.

Theory

Choosing the Right Development Environment:

1. VS Code (Recommended for Most Developers)

  • Free, lightweight, highly extensible
  • Install the "Python" extension by Microsoft
  • Features: IntelliSense, debugging, integrated terminal, Git, Jupyter notebook support
  • Best for: Web development, scripting, general Python

2. PyCharm

  • Full-featured Python IDE by JetBrains
  • Community Edition (free) vs Professional (paid)
  • Features: Advanced refactoring, database tools, Django support, scientific tools
  • Best for: Large projects, Django, enterprise development

3. Jupyter Notebook / JupyterLab

  • Interactive computing environment
  • Code + output + markdown in one document
  • Install: pip install jupyter then jupyter notebook
  • Best for: Data science, visualization, research, teaching

4. IDLE

  • Comes pre-installed with Python
  • Simple, basic, no setup needed
  • Best for: Quick testing, absolute beginners

5. Google Colab

  • Free cloud-based Jupyter notebooks
  • Free GPU/TPU access for ML
  • No installation needed โ€” runs in browser
  • Best for: ML/AI, students, collaboration

VS Code Essential Extensions for Python:

  • Python (Microsoft) โ€” IntelliSense, linting, debugging
  • Pylance โ€” Fast type checking
  • Python Debugger โ€” Breakpoints, step-through
  • Jupyter โ€” Run notebooks in VS Code
  • autoDocstring โ€” Generate docstrings automatically
Syntax
# In VS Code, create a file with .py extension
# hello.py
print("Hello from VS Code!")

# Run with: Ctrl+F5 (Run without debugging)
# Debug with: F5 (Run with debugging)