Terminal and Command Line Basics Working with Jupyter Notebooks: markdown, raw, code
Python Development Tools (IDEs Jupyter PyCharm Google Colab)¶
🛠️ WEAPON FORGE: Pick Your Code-Killing Katana
🎭 **The Great IDE Bloodbath**
Every developer has their **sacred weapon**:
Jupyter: *Mad scientist with instant potions*
PyCharm: *Corporate samurai with 17 swords*
Colab: *Cloud wizard stealing Google's GPU*
VS Code: *Swiss Army knife on steroids*
🚨 RULE #1: **YOUR FAVORITE = BEST WEAPON.**
PyCharm fanboys vs Jupyter witches? **Both kill bosses equally dead.**
🗡️ THE FOUR LEGENDARY BLADES (Choose Your Destiny)¶
| Blade | Vibe | Kill Count | Secret Power | Summon Spell |
|---|---|---|---|---|
| Jupyter | 🧪 Alchemist | Charts in 1s | %matplotlib inline | This book! |
| PyCharm | 🏯 Shogun | Bugs=0 | Auto-imports EVERYTHING | jetbrains.com/pycharm |
| Colab | ☁️ Thief | Free GPU | Steals $10K compute | colab.research.google.com |
| VS Code | 🛠️ MacGyver | 20K mods | Turns into ANYTHING | code.visualstudio.com |
🧪 JUPYTER: “I SUMMON CHARTS FROM THE VOID”¶
## Witness the alchemy (RUN THIS!)
print("🔮 JUPYTER RITUAL:")
print(" 1. Type code")
print(" 2. Hit Shift+Enter")
print(" 3. UNIVERSE OBEYS")
## Instant sorcery
import matplotlib.pyplot as plt
import numpy as np
magic = np.sin(np.linspace(0, 10, 100))
plt.plot(magic)
plt.title("🧙♂️ CHART FROM NOTHING!")
plt.show()
print("🎪 Reality bent. You are wizard now.")Jupyter cheat codes:
Shift+Enter = Run + Next cell
A/B = New cell above/below
dd = Delete cell (permanent)
M/Y = Markdown/Code toggle🏯 PYCHARM: “I AM THE CODE EMPEROR”¶
PyCharm users laugh at mortals:
## PyCharm sees this → Auto-fixes EVERYTHING
import pandas as pd # ← Instantly suggests ALL methods
df = pd.DataFrame({'x': [1,2,3]}) # ← Auto-completes 200+ options
## You type "df." → 247 suggestions appear
## Mortal developers: "Wait... what's groupby?"Summon ritual:
Download → “New Project”
Pick
business_mlenvironmentCtrl+Space = BECOME GOD
☁️ COLAB: “I STOLE GOOGLE’S SUPERCOMPUTER”¶
## Colab's dirty secret:
import torch
gpu_stolen = torch.cuda.is_available()
print(f"🕵️♂️ GPU THEFT SUCCESS: {gpu_stolen}")
print("💰 Value stolen: $10,000/month")
print("😈 Google: 'WTF?'")
print("🧙♂️ You: 'Free ML training!'")Colab for when you:
Forgot to setup locally
Need GPU RIGHT NOW
Want to flex “I trained on T4”
🏆 WEAPON FORGE CEREMONY (Run in ANY Tool!)¶
## FORGE YOUR LEGENDARY BLADE
import pandas as pd
import matplotlib.pyplot as plt
## Battle test
sales_data = {'Weapon': ['Jupyter', 'PyCharm', 'Colab', 'VS Code'],
'Bosses_Killed': [847, 1293, 956, 1102]}
df = pd.DataFrame(sales_data)
plt.bar(df['Weapon'], df['Bosses_Killed'])
plt.title("⚔️ YOUR WEAPON'S KILL COUNT")
plt.ylabel("Corporate Victims")
plt.xticks(rotation=45)
plt.show()
print("✅ ALL BLADES = DEADLY")
print("🎯 Pick yours → Master it → Conquer")🎮 YOUR WEAPON OATH (2 Seconds → Eternal Glory)¶
## SWEAR YOUR ALLEGIANCE
chosen_blade = "????" # Jupyter? PyCharm? Colab? VS Code?
kill_promise = "????" # "Excel users"? "Manual reports"? "Buggy code"?
print(f"""
⚔️ WEAPON FORGE CEREMONY ⚔️
═══════════════════════════════
🗡️ Blade Chosen: {chosen_blade}
🎯 First Blood: {kill_promise}
👑 Forged By: YOU
LEGEND UNLOCKED:
• Instant charts (Jupyter)
• Zero bugs (PyCharm)
• Free GPU (Colab)
• Infinite power (VS Code)
💀 ENEMIES TREMBLING:
• VLOOKUP peasants
• Copy-paste zombies
• "It works on my machine" liars
🏆 STATUS: BATTLE READY
""")Replace ???? → Run → Screenshot your oath → Send to group chat
🎲 THE ULTIMATE CHOICE MATRIX¶
| Your Personality | Your Blade | Your Battle Cry |
|---|---|---|
| “Charts = Life” | Jupyter | “Shift+Enter = Victory!” |
| “I hate bugs” | PyCharm | “Ctrl+Space = God mode!” |
| “Free stuff!” | Colab | “GPU theft successful!” |
| “I customize EVERYTHING” | VS Code | “20,000 extensions activated!” |
🤫 THE DIRTY SECRET¶
Recruiters don’t give a shit about your IDE.
Boss: "Can you ship working code?"
You: "Yes" ← $300K job
You: "I use PyCharm" ← Still $300K jobBut here’s the flex: When you master ONE tool, you intimidate everyone.
Next: First Program (Code that calculates your first $10K bonus)
Picture this: Your PyCharm brother spends 20 minutes importing libraries manually while your Jupyter twin types %matplotlib inline and charts appear like magic. Colab kid’s over there training neural nets on stolen GPUs while VS Code warrior installed a “dark mode” extension just to look cool. And you know what? ALL FOUR ARE EQUALLY TERRIFYING. The real comedy is watching Excel-only classmates realize their VLOOKUP prayers won’t save them from your one-liner automations. You’ve got four legendary blades—pick one, master it, then laugh as the IDE wars rage on without you. You’re already 4 steps ahead.
print("🗡️" * 10)
print("⚔️ WEAPON FORGED. ENEMIES DETECTED.")
print("💀 Manual laborers: 500m away...")
print("🎯 Executing purge sequence...")
print("🗡️" * 10)Exercises¶
Keep your tool selection practical: use Jupyter for interactive exploration, PyCharm for large applications, Colab for quick GPU access, and VS Code when you need flexibility.Exercise 1¶
Build a tool chooser that recommends the fastest environment for exploratory data work.
Exercise 2¶
Write compare_tools() to return a simple summary for a chosen tool name.
Exercise 3¶
Create tool_decision(task) that returns the best tool based on a business task description.
Setting Up Your Python Environment¶
🎪 Welcome to Python's **Schrödinger's Cat Laboratory**
Python environments are like **evil twins**:
One twin: Clean, perfect, runs ML models
Other twin: Broken, full of garbage packages
Your job: Create the **good twin** and murder the bad one
🚨 INSTANT CHEAT CODES (TOP OF PAGE):
[JupyterLite Button] [Colab Button] → **CODE NOW. ZERO BRAIN CELLS REQUIRED.**
🤹♂️ METHOD 1: “Anaconda GUI” (For People Who Fear Terminals)¶
Imagine installing Python like ordering Domino’s:
Step-by-step (like a children’s book):
Open Anaconda Navigator (big blue icon)
Click “Environments”
“Create” → type
business_ml→ EnterClick your new baby environment
Search:
jupyterpandasnumpyClick checkboxes like a mad scientist
🎪 LAUNCH! Jupyter opens = VICTORY DANCE
GUI Secret: It’s like App Store for Python. Click = Install. No typing = No tears.
🦁 METHOD 2: “Terminal” (For People Who Want Respect)¶
One-liner that makes you look like Neo:
## COPY → PASTE → ENTER = INSTANT GOD MODE
conda create -n business_ml python=3.11 jupyter pandas numpy matplotlib seaborn plotly -y && conda activate business_ml && jupyter notebookWhat just happened?
business_ml= Your evil clone army base-y= “Yes, I’m sure, don’t ask stupid questions”Result: Clean environment + Jupyter opens = Boss stares in confusion
🧪 METHOD 3: “Jupyter Magic” (For Actual Wizards)¶
Inside ANY notebook, type this and watch reality bend:
## PIP INSTALL = HARRY POTTER SPELL
import sys
!{sys.executable} -m pip install pandas numpy matplotlib seaborn plotly scikit-learn openpyxl yfinance
print("🧙♂️ MAGIC COMPLETE. Restart kernel → SUMMON LIBRARIES!")Pro move: Install ANYTHING without leaving notebook.
!pip install unicorn_magic → Reality breaks → You win.
🧬 TEST YOUR PYTHON CLONE (Run This Ritual!)¶
import sys
import subprocess
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
## Clone DNA test
def clone_status():
print("🧬 PYTHON CLONE ANALYSIS")
print(f" 🐍 Version: {sys.version.split()[0]}")
print(" 📦 PANDAS: ", end="")
try:
print(f"✅ v{pd.__version__}")
except:
print("❌ MISSING")
print(" 🔢 NUMPY: ", end="")
try:
print(f"✅ v{np.__version__}")
except:
print("❌ MISSING")
print(" 📊 MATPLOTLIB: ", end="")
try:
print("✅ READY")
plt.plot([1,2,3]); plt.close()
except:
print("❌ MISSING")
print("\n🎪 CLONE STATUS: ", end="")
if 'business_ml' in subprocess.getoutput('conda info --envs'):
print("👑 PERFECT (business_ml)")
else:
print("⚠️ Good enough")
clone_status()
## VICTORY CEREMONY
print("\n" + "🎉" * 20)
print("YOUR PYTHON CLONE IS ALIVE!")
print("💀 Old broken environments: TERMINATED")
print("🚀 Ready to conquer business + ML")
print("🎉" * 20)🎰 CHOOSE YOUR FIGHTING STYLE¶
| Warrior Type | Method | Battle Cry | Time to Victory |
|---|---|---|---|
| Click Peasant | Anaconda GUI | “I clicked my way to power!” | 8 minutes |
| Terminal Samurai | Conda 1-liner | “One command = Total domination” | 30 seconds |
| Notebook Sorcerer | !pip magic | “Libraries summon themselves!” | 10 seconds |
| Lazy God | TOP BUTTONS | “I didn’t even try” | 0 seconds |
ALL WIN. Pick your vibe.
🏆 YOUR CLONE CREATION RITUAL¶
## Declare your Python empire
clone_name = "business_ml" # Change if you're feeling spicy
warrior_type = "????" # GUI? Terminal? Magic? Lazy?
print(f"""
👑 PYTHON CLONE BIRTH CERTIFICATE
═══════════════════════════════
Name: {clone_name}
Creator: YOU (The Chosen One)
Method: {warrior_type}
Status: 100% PURE - ZERO GARBAGE
⚔️ Powers Unlocked:
• 📊 Pandas (Data eating machine)
• 🔢 NumPy (Math god)
• 📈 Matplotlib (Chart wizard)
• 🧙♂️ Seaborn (Beauty filter)
💀 Enemies Destroyed:
• Dependency hell
• "Works on my machine"
• Version conflicts
🎪 EMPIRE READY. WORLD DOMINATION BEGINS.
""")Replace ???? → Run → Screenshot your empire → Send to friends who still use Excel
🤯 THE MIND-BLOWING TRUTH¶
Creating business_ml = Same thing as:
🏦 Opening a Swiss bank account for your code
🏠 Building a panic room where nothing breaks
👑 Cloning yourself as a coding slave who never sleeps
Your classmates using “base” environment?
😂 Still fighting:
• "Package not found"
• "Python broke again"
• "Why doesn't this work???"You?
😎 Living in parallel universe:
• Clean environments forever
• Install anything instantly
• Never see errors againNext: Dev Tools (Jupyter = Mad Scientist Lab, VS Code = Hacker Terminal, PyCharm = Corporate Battleship)