matplotlib-inline

Inline Matplotlib backend for Jupyter

BSD-3-CLAUSE License

Downloads
39.1M
Stars
14
Committers
24

Matplotlib Inline Back-end for IPython and Jupyter

This package provides support for matplotlib to display figures directly inline in the Jupyter notebook and related clients, as shown below.

Installation

With conda:

conda install -c conda-forge matplotlib-inline

With pip:

pip install matplotlib-inline

Usage

Note that in current versions of JupyterLab and Jupyter Notebook, the explicit use of the %matplotlib inline directive is not needed anymore, though other third-party clients may still require it.

This will produce a figure immediately below:

%matplotlib inline

import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 3*np.pi, 500)
plt.plot(x, np.sin(x**2))
plt.title('A simple chirp');

License

Licensed under the terms of the BSD 3-Clause License, by the IPython Development Team (see LICENSE file).

Package Rankings
Top 14.15% on Alpine-edge
Top 11.98% on Alpine-v3.18
Top 4.6% on Pypi.org
Top 29.82% on Anaconda.org
Top 16.48% on Spack.io
Top 12.12% on Alpine-v3.16
Top 13.31% on Alpine-v3.17
Top 24.89% on Conda-forge.org
Related Projects