Skip to main content

Jupyter

Why?

  • See output of Python changes

How

  • Create a Jupyter notebook
  • Make my changes in the codebase
  • Import the changed files in the notebook
  • Inspect the output in the notebook
  • If I make significant code changes, run Kernel > Restart and clear output to refresh the notebook

In VS Code

Keyboard shortcuts

Here are a few examples of the default

  • Shift + Enter: Run the current cell and move to the next cell.
  • Ctrl + Enter: Run the current cell.
  • Alt + Enter: Run the current cell and insert a new cell below.
  • A: Insert a new cell above the current cell (when in command mode).
  • B: Insert a new cell below the current cell (when in command mode).
  • D, D (press the key twice): Delete the current cell (when in command mode).
  • Y: Change the cell type to Code (when in command mode).
  • M: Change the cell type to Markdown (when in command mode).

To enter command mode, press Esc. To go back to edit mode, press Enter.

In Jupyter Lab

Jupytext

In the terminal

Hex

  • A notebook alternative to Jupyter

Inbox

  • jupyter: how do use it well inside VS Code? find a course? save some useful notebooks in my python projects?
  • copilot: Copilot and Jupyter Notebooks - 1 min video showing how to use copilot to quickly import, clean and reduce the memory usage of CSV data imported as a Pandas dataframe