Topic 2 / 5📁 Unit Index
BP101T • Unit 1Topic 2 of 5⏱ 5 Min Read

2. Python IDEs: IDLE, VS Code, Jupyter Notebook & PyCharm

💡 Core Concept & Clinical Context:

An Integrated Development Environment (IDE) is a software application that consolidates essential developer tools into a single graphical user interface. While a basic text editor (like Notepad) only allows typing text, an IDE provides syntax highlighting, auto-completion (IntelliSense), an integrated debugger, a terminal console, and package management. Different IDEs serve distinct pharmaceutical workflows: Jupyter Notebook is ideal for exploratory pharmacokinetics and step-by-step data analysis, VS Code is a versatile lightweight editor for building complete pharmacy applications, and IDLE is the lightweight default environment bundled with Python.

Beginner Friendly • First Year B.Pharm

🛠️ Step-by-Step Installation Guides for Each Tool

💡 2-Minute Quick Concept:

To write and run code, you only need two things:

1. The Engine (Python)

The behind-the-scenes brain that calculates your pediatric dosages and solves pharmacy math.

2. The Editor (VS Code / Jupyter)

The screen where you type code with color-coding and automatic spelling/error checks.

1

Installing Python 3 (The Core Engine)

Required on all computers to run pharmaceutical scripts
Step 1 of 2

Python reads your instructions almost like plain English. When you install Python, you get the interpreter that executes your calculations (like Young's Rule child doses or drug solubility).

Step 1.1: Downloadpython.org/downloads
Python Official Download Page
Click the big yellow download button on the official website.
Step 1.2: Check PATH BoxMust Do ⚠️
Python Setup Wizard PATH Checkbox
Tick the bottom box: "Add python.exe to PATH" before clicking Install Now.
Step 1.3: Setup CompletedSetup Done ✓
Python Setup Successful Verification
When you see "Setup was successful", click Close.
Simple 4-Step Checklist:
  • 1.Download: Open your browser, visit python.org/downloads and click the yellow download button.
  • 2.Check PATH: Open the downloaded file. On the very first screen, tick the box "Add python.exe to PATH".
  • 3.Click Install Now: Python will install on your PC within 1-2 minutes.
  • 4.Test: Open Command Prompt (press Win + R, type cmd), and type python --version. If it prints Python 3.x, you are ready!
2

Visual Studio Code (Your Smart Coding Notebook)

Best free code editor by Microsoft
Top Recommended

Think of VS Code like Microsoft Word with spellcheck for programming. When you make a typing mistake, VS Code shows a red wavy line immediately so you can fix it before running your lab calculation.

Step 2.1: Downloadcode.visualstudio.com
VS Code Official Download
Download the free installer for Windows.
Step 2.2: Add Python ExtensionMicrosoft Python
VS Code Setup Wizard and Extensions
Search "Python" in Extensions and click Install.
Simple 4-Step Checklist:
  • 1.Download: Go to code.visualstudio.com and download the installer.
  • 2.Install: Run the setup and keep clicking Next with default options checked.
  • 3.Add Python Support: Open VS Code, click the Extensions icon (or press Ctrl + Shift + X), type "Python", and click Install.
  • 4.Write & Run: Create a new file dosage.py, write your calculation, and click the triangle Play button at the top-right!
3

Jupyter Notebook (Interactive Lab Notebook)

Best for pharmacology graphs, kinetics & practical assignments
Pharma Graphs

Jupyter Notebook lets you run code one calculation box at a time. You can see drug concentration curves and tables right below your formula without re-running the entire file.

Step 3.1: Command Promptpip install notebook
Jupyter Pip Install Terminal Command
Run pip install notebook in Command Prompt.
Step 3.2: Notebook Screenlocalhost:8888
Jupyter Notebook Browser Interface
Jupyter opens in your web browser with interactive cells.
Simple 4-Step Checklist:
  • 1.Open Terminal: Press Win + R, type cmd, and press Enter.
  • 2.Install: Type pip install notebook and press Enter.
  • 3.Launch: Type jupyter notebook. It will automatically open in your web browser.
  • 4.Run Cell: Click New → Notebook, write your formula, and press Shift + Enter to see the answer instantly!
4

PyCharm Community Edition (Professional IDE)

Complete dedicated environment by JetBrains
100% Free

PyCharm is a complete digital lab built exclusively for Python. It automatically creates isolated virtual environments so your pharmacy packages never conflict with each other.

Step 4.1: Downloadjetbrains.com/pycharm
PyCharm Community Download Page
Download the free Community Edition.
Step 4.2: Setup WizardInstallation Options
PyCharm Setup Options
Check "Add bin folder to PATH" during installation.
Simple 3-Step Setup:
  • 1.Download Free Version: Visit jetbrains.com/pycharm/download and download the free Community Edition.
  • 2.Install: Run the installer and check the box "Add bin folder to PATH".
  • 3.Start Project: Open PyCharm, click "New Project", and click "Create".
5

Google Colab (Zero-Install Online Option)

Works directly in your phone or laptop browser without installing anything
Cloud Tool

Google Colab is like Google Docs for Python programming. You don't need to install anything on your laptop. All scientific packages (numpy, pandas, matplotlib) are already built-in, and your work saves automatically to Google Drive.

Online Screencolab.research.google.com
Google Colab Interface
Runs in any browser on laptops, tablets, or phones.
Quick 3-Step Guide:
  • 1.Open Colab: Visit colab.research.google.com in your browser.
  • 2.Sign In: Log in with your regular Google / Gmail account.
  • 3.Calculate & Share: Click "New Notebook", write your formula, press Shift + Enter, and click Share to submit practical assignments!
Pharmaceutical Code & Calculation Examples:
1Comparison of Pharmacy Development Environments

Choosing the right tool for laboratory work: Jupyter Notebook allows running individual cells of code to visualize graphs inline alongside chemical explanations, while VS Code is used for building multi-file laboratory management systems.

example_1.py
# Running an inline calculation cell in Jupyter Notebook
import math
half_life_hours = 3.5
elimination_rate_k = math.log(2) / half_life_hours
print(f"Elimination rate constant (Ke): {elimination_rate_k:.4f} hr^-1")
Comparison & Reference Table:
IDE NameBest Used ForKey Advantage for PharmacyLearning Curve
IDLEQuick syntax tests & simple scriptsZero installation needed (comes with Python)Very Low
Jupyter NotebookPK graphing & statistical analysisInteractive cell-by-cell execution with inline chartsLow
VS CodeMulti-file pharmacy desktop/web appsFast, modular, extensive extensions supportModerate
PyCharmLarge enterprise pharmaceutical systemsAdvanced debugging and code refactoring toolsModerate to High
📋Key Takeaways & Exam Highlights
  • IDLE: Bundled with Python, lightweight, suitable for absolute beginners learning basic syntax.
  • VS Code: Open-source, highly extensible via plugins (Python, Pylance), integrated terminal, Git version control.
  • Jupyter Notebook: Cell-based execution, displays tables, markdown notes, and Matplotlib plots inline; standard in data science.
  • PyCharm: Professional full-featured IDE with deep static code analysis and virtual environment managers.
🇮🇳 हिन्दी व्याख्या (2. Python IDEs: IDLE, VS Code, Jupyter Notebook & PyCharm)

IDE एक ऐसा सॉफ्टवेयर है जहाँ हम कोड लिखते, टेस्ट करते और रन करते हैं। जुपिटर नोटबुक (Jupyter) ग्राफ और लैब नोट्स के लिए सबसे अच्छा है, जबकि VS Code बड़े प्रोजेक्ट्स के लिए बेहतरीन है।

Need to see the complete unit overview, solved numericals, or exam checklist?Open Unit 1 Overview Hub →