File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1- from IPython .display import set_matplotlib_formats
1+ try :
2+ from matplotlib_inline .backend_inline import set_matplotlib_formats
3+ except Exception : # pragma: no cover
4+ try :
5+ # for older IPython versions
6+ from IPython .display import set_matplotlib_formats # type: ignore[attr-defined]
7+ except Exception :
8+ # if we're not in a notebook or nothing available, make it a no-op
9+ def set_matplotlib_formats (* args , ** kwargs ):
10+ pass
211import matplotlib
3- from SimPEG .utils import download , mkvc , sub2ind
12+ from simpeg .utils import download , mkvc , sub2ind
413import numpy as np
514import scipy .io
615from ipywidgets import (
Original file line number Diff line number Diff line change 3737 "scipy>=1.7" ,
3838 "matplotlib>=3.4" ,
3939 "ipywidgets" ,
40- "SimPEG >=0.15.0" ,
40+ "simpeg >=0.15.0" ,
4141 "discretize>=0.7.0" ,
4242 "empymod>=2.0.0" ,
4343 "jupyter" ,
You can’t perform that action at this time.
0 commit comments