Skip to content

multiline magic command doesn't end (Jupyter console) #139

@DataBranner

Description

@DataBranner

In a Jupyter notebook, a "cell magic" command (prefixed with two percent signs) ends at the end of the cell and is automatically invoked:

%%timeit in Jupyter notebook

But if I try the same thing in the Jupyter console, the command never ends, after any number of blank lines:

%%timeit in Jupyter console

That only happens if I invoke IPython as jupyter console, though. If I invoke IPython directly as ipython, the cell magic command completes after one blank line:

%%timeit in ipython console

For each example, the versions of Python and IPython are identical: Python 3.5.2 and IPython 6.1.0 on one machine (installed with pip), Python 3.4.5 and IPython 5.1.0 on another (installed with Conda).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions