Reputation: 3812
What is the difference between magic commands in Python starting with single %
or double question %%
mark?
Upvotes: 1
Views: 590
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