Python – Jupyter Notebook runs all code between two units

Jupyter Notebook runs all code between two units… here is a solution to the problem.

Jupyter Notebook runs all code between two units

Is there a way to run code between two specific units on a Jupyter notebook? For example, let’s say I have 100 units and I only want to run cells from 35 to 60. I don’t want to run all cells from 1 to 60 again, because, for example, cells from 1 to 34 can take a long time to execute.

Solution

You can use shift+K to select cells (up direction)/shift+J (down direction) and then Ctrl+Enter execution

Related Problems and Solutions