fix import error
This commit is contained in:
parent
52b03cf4db
commit
ef924e5686
2
.github/workflows/python-app.yml
vendored
2
.github/workflows/python-app.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8 pyqt5 pytest-qt nixio matplotlib
|
||||
pip install flake8 pyqt5 pytest-qt nixio matplotlib ipython
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
|
@ -10,7 +10,7 @@ import numpy as np
|
||||
try:
|
||||
import matplotlib.pyplot as plt
|
||||
except ImportError as e:
|
||||
print("cannot omport matplotlib", e)
|
||||
print("cannot import matplotlib, headless mode?", e)
|
||||
from matplotlib.widgets import Slider
|
||||
from IPython import embed
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user