Skip to content

Commit

Permalink
Merge pull request spacetelescope#2945 from rosteen/auto-backport-of-…
Browse files Browse the repository at this point in the history
…pr-2944-on-v3.10.x

Backport PR spacetelescope#2944 on branch v3.10.x (fix: make standalone work with matplotlib >= 3.9.0)
  • Loading branch information
pllim authored Jul 9, 2024
2 parents 71e7790 + a72abbd commit 0021fba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions standalone/jdaviz-cli-entrypoint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import sys
# this avoids:
# ValueError: Key backend: 'module://matplotlib_inline.backend_inline' is not a valid value for backend; supported values are [...]
# Although not 100% why, it has two effects:
# 1. PyInstaller picks it up as a module to include
# 2. It registers the backend, maybe earlier than it would be otherwise
import matplotlib_inline
import matplotlib_inline.backend_inline

def start_as_kernel():
# similar to https://github.com/astrofrog/voila-qt-app/blob/master/voila_demo.py
Expand Down

0 comments on commit 0021fba

Please sign in to comment.