Skip to content

Commit c5887ea

Browse files
ianthomas23SylvainCorlay
authored andcommitted
Add matplotlib.backend entry point
1 parent 876fe60 commit c5887ea

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

matplotlib_inline/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
from . import backend_inline, config # noqa
2-
__version__ = "0.1.6" # noqa
2+
__version__ = "0.1.7.dev1" # noqa

matplotlib_inline/backend_inline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def configure_inline_support(shell, backend):
176176
if cfg not in shell.configurables:
177177
shell.configurables.append(cfg)
178178

179-
if backend == 'module://matplotlib_inline.backend_inline':
179+
if backend in ('inline', 'module://matplotlib_inline.backend_inline'):
180180
shell.events.register('post_execute', flush_figures)
181181

182182
# Save rcParams that will be overwrittern

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ license = {file = "LICENSE"}
3939
readme = "README.md"
4040
requires-python = ">=3.8"
4141

42+
[project.entry-points."matplotlib.backend"]
43+
inline = "matplotlib_inline.backend_inline"
44+
4245
[project.urls]
4346
Homepage = "https://github.com/ipython/matplotlib-inline"
4447

0 commit comments

Comments
 (0)