Matplotlib Inline Backend for Jupyter
Provides an inline Matplotlib backend for Jupyter, enabling figures to display directly within the notebook interface. Current version: 0.2.1. Maintained by the IPython Development Team, with releases as needed to address updates and improvements.
Warnings
- breaking Ensure that 'matplotlib-inline' is installed to enable inline plotting in Jupyter notebooks. Without this package, figures may not display inline.
- gotcha In some Jupyter environments, the '%matplotlib inline' magic command may still be required to enable inline plotting. If figures do not display inline, try running '%matplotlib inline' in a notebook cell before plotting.
Install
-
pip install matplotlib-inline
Imports
- configure_inline_support
from IPython.core.pylabtools import configure_inline_support
Quickstart
import numpy as np
import matplotlib.pyplot as plt
# Generate sample data
x = np.linspace(0, 10, 100)
y = np.sin(x)
# Create a plot
plt.plot(x, y)
plt.title('Sine Wave')
plt.show()