diff --git a/standalone/hooks/hook-matplotlib_inline.py b/standalone/hooks/hook-matplotlib_inline.py new file mode 100644 index 0000000000..432d0d302b --- /dev/null +++ b/standalone/hooks/hook-matplotlib_inline.py @@ -0,0 +1,5 @@ +from PyInstaller.utils.hooks import collect_data_files, copy_metadata + +datas = collect_data_files('matplotlib_inline') +# since matplotlib 3.9 entry_points.txt is needed +datas += copy_metadata('matplotlib_inline') diff --git a/standalone/jdaviz-cli-entrypoint.py b/standalone/jdaviz-cli-entrypoint.py index 5555322194..05c29281ad 100644 --- a/standalone/jdaviz-cli-entrypoint.py +++ b/standalone/jdaviz-cli-entrypoint.py @@ -11,6 +11,10 @@ # output recommends the following: import matplotlib matplotlib.use("module://matplotlib_inline.backend_inline") +# since matplotlib 3.9 (see https://github.com/matplotlib/matplotlib/pull/27948), +# it seems that matplotlib_inline.backend_inline is an alias for inline +# so we make sure to communicate that to PyInstaller +matplotlib.use("inline") import jdaviz.cli