Alex Martian
Alex Martian

Reputation: 3812

Python double question mark %% magic commands vs single %

What is the difference between magic commands in Python starting with single % or double question %% mark?

Upvotes: 1

Views: 590

Answers (1)

Alex Martian
Alex Martian

Reputation: 3812

Magic commands come in two flavors: line magics, which are denoted by a single % prefix and operate on a single line of input, and cell magics, which are denoted by a double %% prefix and operate on multiple lines of input.

More details: Python Magic Commands

Upvotes: 2

Related Questions