Skip to content

Extract inline backend from ipykernel and matplotlib magics from IPython #588

@martinRenou

Description

@martinRenou

There is currently a big special case for the Matplotlib library in ipykernel and IPython.

IPython provides a %matplotlibmagic that allows choosing the current Matplotlib backend that is being used. For the sake of modularity, and in order to get rid of the special case, we should maybe extract this magic out of IPython and put it in Matplotlib (when Matplotlib is installed, it installs this magic).

ipykernel provides the Matplotlib inline backend, this should maybe be extracted from ipykernel and put in a separate package (Matplotlib?). This new module should maybe contain the configure_inline_support method that currently lives in IPython, and should be called when %matplotlib inline is invoked.

Those two improvements would help clean up the current ipykernel-IPython-Matplotlib relationship.

@SylvainCorlay @Carreau @tacaswell

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions