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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
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
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
|
@ -10,7 +10,7 @@ import numpy as np
|
|||||||
try:
|
try:
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
print("cannot omport matplotlib", e)
|
print("cannot import matplotlib, headless mode?", e)
|
||||||
from matplotlib.widgets import Slider
|
from matplotlib.widgets import Slider
|
||||||
from IPython import embed
|
from IPython import embed
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user