Skip to content

Commit

Permalink
fix: matplotlib 3.9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Sep 12, 2024
1 parent 4dbcd0a commit 47462c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions standalone/hooks/hook-matplotlib_inline.py
Original file line number Diff line number Diff line change
@@ -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')
4 changes: 4 additions & 0 deletions standalone/jdaviz-cli-entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 47462c7

Please sign in to comment.