Skip to content
Dave Ebbelaar
0:32:00
7 341
362
21
Last update : 23/08/2024

Turbocharge Your Data & AI Projects: The VS Code Power-Up Guide 🚀

Stop wasting time on clunky setups! This guide transforms your VS Code into a lean, mean, data-crunching machine, optimized for Python, Jupyter Notebooks, and AI workflows.

We’ll cover:

  • 🧠 Why VS Code is a data scientist’s best friend
  • 📁 Setting up your workspace like a pro (with a free template!)
  • 🔌 Essential extensions to supercharge your workflow
  • ✨ Effortless code formatting and organization
  • ⚡️ The magic of Interactive Python (it’s like Jupyter Notebooks on steroids)
  • 🚀 Seamlessly integrating with GitHub

Let’s turn you into a VS Code ninja! 🥷


🧠 Why VS Code? It’s Free, Powerful, and Customizable!

VS Code (Visual Studio Code) is a free, open-source code editor from Microsoft. It’s loved by developers for its:

  • Flexibility: Works on Windows, Mac, and Linux
  • Power: Packed with features and customizable to the max
  • Extensions: A massive library of add-ons to personalize your experience

In short, VS Code can be molded to fit your workflow perfectly.


📁 Organize Like a Pro: The Project Workspace

Think of a workspace as a dedicated home for your project. It keeps your code, data, and settings organized. Here’s the winning setup:

  1. Create a “Repositories” folder: This is where all your projects will live.
  2. For each project, create a new folder.
  3. Open the folder in VS Code: Go to File > Open Folder
  4. Save as a Workspace: Go to File > Save Workspace As and give it a name.

Pro Tip: Use the free project template from the Toolbox below! It provides a pre-built structure for data & AI projects.


🔌 Essential Extensions: Your Productivity Power-Ups

VS Code’s extensions are like superpowers! Here are the must-haves:

  • Python Extension Pack: This all-in-one pack includes essential tools for Python development (linting, debugging, and more).
  • GitHub Copilot: Your AI-powered coding buddy, suggesting code completions and generating code snippets. (Requires a paid subscription, but it’s worth it!)
  • Path Intellisense: Easily navigate your project’s folders and files with intelligent autocompletion.
  • GitHub Pull Requests: Manage your GitHub pull requests right inside VS Code.
  • Better Comments: Add color and clarity to your code comments using special characters.
  • Ruff: Effortlessly format and organize your code with this powerful linter.
  • Atom One Dark Theme (Optional): A popular dark theme for a sleek look.
  • Material Icon Theme (Optional): Adds beautiful icons to your files and folders for easy visual identification.

To install:

  1. Click the Extensions icon in the left sidebar (or press Ctrl+Shift+X or Cmd+Shift+X).
  2. Search for the extension by name.
  3. Click “Install”.

✨ Code Formatting Zen: Embrace the Power of Ruff

Tired of messy code? Ruff automatically formats your Python code to adhere to best practices (PEP 8), ensuring consistency and readability.

How to activate:

  1. Go to Settings (or Code > Preferences > Settings on Mac).
  2. Search for “format on save” and check the box.
  3. Search for “default formatter” and select “Ruff”.

Now, every time you save (Ctrl+S or Cmd+S), your code will be beautifully formatted!

Bonus Tip: Ruff can also sort your imports! Just open the command palette (Ctrl+Shift+P or Cmd+Shift+P) and search for “Format Imports”.


⚡️ Interactive Python: The Best of Both Worlds

Interactive Python combines the power of Python scripts with the flexibility of Jupyter Notebooks. No more switching back and forth!

Here’s how it works:

  1. Enable the right setting: Go to Settings and search for “Jupyter Interactive Window”. Check the box for “Enable sending selection to Interactive Window”.
  2. Open a Python file.
  3. Select a line, a block of code, or the entire file.
  4. Press Shift+Enter to send it to the Interactive Window.

You can now run code line-by-line, inspect variables, and iterate rapidly — all within your Python file!


🚀 GitHub Integration: Effortless Version Control

VS Code has built-in tools to streamline your GitHub workflow:

  • Initialize a new repository: Easily turn your project folder into a Git repository.
  • Commit and push changes: Track your progress with clear commit messages.
  • Manage branches: Create, switch, and merge branches effortlessly.
  • Pull latest changes: Stay updated with the latest code from your collaborators.

No need to memorize complex Git commands! VS Code’s intuitive interface makes version control a breeze.


🧰 Toolbox: Resources to Level Up

  • VS Code Download: https://code.visualstudio.com/
  • Free Project Template: [Link provided in the video description]
  • ClickUp (Project Management): [Link provided in the video description]
  • Python.org (Python Installation): https://www.python.org/downloads/

Congratulations! You’re now equipped to conquer your data and AI projects with a supercharged VS Code setup.

Remember: This is just the beginning! Explore VS Code’s features, experiment with extensions, and customize your environment to match your unique workflow. Happy coding! 🎉

Other videos of

Play Video
Dave Ebbelaar
0:33:36
1 683
103
16
Last update : 11/09/2024
Play Video
Dave Ebbelaar
0:24:02
8 950
318
38
Last update : 04/09/2024
Play Video
Dave Ebbelaar
0:12:53
2 773
148
28
Last update : 23/08/2024
Play Video
Dave Ebbelaar
0:24:46
22 782
694
54
Last update : 23/08/2024
Play Video
Dave Ebbelaar
0:23:59
1 725
99
9
Last update : 25/08/2024