SimpleLanguageSimpleLanguage
Sign In
Register
Coding 101101 GuidesAI & LLMsDeep DivesGameplanning
StoriesRegisterRequest Research

Stay informed

Subscribe to SimpleLanguage

Get weekly insights on startups, technology, and the ideas shaping our future.

Subscribe
SimpleLanguage

SimpleLanguage

Insights on entrepreneurship, startups, tech, and society.

Topics

  • Coding 101
  • 101 Guides
  • AI & LLMs
  • Deep Dives
  • Gameplanning

Connect

  • About
  • Contact
  • Resources
  • Request Research
  • Sign In
  • Register

© 2026 SimpleLanguage.

Home/Deep Dive

Setting up "Scientific Mode" in VS Code: A No-Fluff Guide

P
By Pantheon Network
November 24, 2025
Cat on a computer
Setting up "Scientific Mode" in VS Code: A No-Fluff Guide

Many Python programmers switching to Visual Studio Code miss one feature from Scientific Mode in PyCharm or Spyder: the ability to run lines of code one by one from a script and see your output in an IPython console (not just a terminal) — and especially the nice Pandas DataFrame visualizations.

VS Code does not do this out of the box.

Here is exactly what you need to do to get it in 2025.

Prerequisites

You need three official Microsoft extensions. Install these from the Marketplace if you don't have them:

  1. Python: (Essential language support)
  2. Jupyter: (Powers the Interactive Window/IPython kernel)
  3. Data Wrangler: (A DataFrame viewer from Microsoft)

Step 1: The Crucial Setting (Force the Interactive Window)

By default, running a selection in VS Code sends the code to the default Terminal, which is clunky for data exploration. You can force code to run in the Interactive Window (IPython REPL).

  1. Open Settings (Ctrl + , / Cmd + ,)
  2. Search for: jupyter.sendSelectionToInteractiveWindow
  3. Check the box

Now, code that you run will spawn a dedicated Jupyter kernel pane, instead of cluttering your terminal.

Step 2: Map "Alt+Enter" to Run & Advance

You might want Alt+Enter to execute the current line and then automatically move to the next line. To do this, you need to create a custom keybinding.

  1. Open Keyboard Shortcuts (Ctrl + K, then Ctrl + S).
  2. Search for this command: Jupyter: Run Selection/Line in Interactive Window.
  3. Double-click.
  4. Press Alt + Enter on your keyboard.
  5. Press Enter to confirm the override.

Step 3: Viewing DataFrames (Data Wrangler)

To visualize dataframes, use Data Wrangler.

  1. Create a DataFrame (e.g., import pandas as pd...).
  2. Run the code line by line so the variable is loaded into memory in the Interactive Window.
  3. At the top of the Interactive Window panel, click the Variables button ({x}).
  4. Click the "sheet" icon next to your DataFrame variable.

This opens the Data Wrangler view.

Step 4: Fixing the Layout (Side-by-Side)

PyCharm/Spyder typically puts code on the left and variables on the right.

  1. Run a line of code to open the Interactive Window.
  2. Click and hold the title tab of the Interactive Window.
  3. Drag it to the far Right edge of your screen and drop it.

One More: Set Ctrl+B to "Go to Definition"

In PyCharm, Cmd+B (Mac) or Ctrl+B (Windows) jumps to the definition of a variable/function.

To replicate this in VSCode:

  1. Open Keyboard Shortcuts.
  2. Unbind the old conflict:
  3. Search for "Toggle Primary Side Bar Visibility".
  4. Right-click the entry linked to Cmd+B (or Ctrl+B) and select Remove Keybinding.
  5. Add the new shortcut:
  6. Search for "Go to Definition".
  7. Double-click it and press Cmd+B (or Ctrl+B).
  8. Press Enter.

More in Coding 101

Feature

Set up Obsidian Syncing Across Devices (Free)

A guide to set up Obsidian to sync across your devices without paying a monthly subscription fee.

September 28, 2025
Set up Obsidian Syncing Across Devices (Free)
Feature

Getting started coding: A no-nonsense, no-fluff guide

There are so many great coding tutorials on the internet, but they all seem to dive into code rather than explaining what is going on from a ten thousand foot view. That's why we wrote this guide.

October 12, 2024
Getting started coding: A no-nonsense, no-fluff guide

Coding 101

Set up Obsidian Syncing Across Devices (Free)

Set up Obsidian Syncing Across Devices (Free)

Getting started coding: A no-nonsense, no-fluff guide

101 Guides

How to Manage Multiple GitHub Accounts on One Computer

How to Manage Multiple GitHub Accounts on One Computer

AI & LLMs

Self-Hosting n8n on Ubuntu

Self-Hosting n8n on Ubuntu

Deep Dives

GPT-5.4: Strong at Coding, Harder to Trust

GPT-5.4: Strong at Coding, Harder to Trust

Gameplanning

Thinking like a founder: Mindsets to launch a startup

Thinking like a founder: Mindsets to launch a startup