File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1515from .utils .utils import version
1616from .utils .utils import list_datasets
1717
18- from .utils .stats import summarize_response_metric
18+ try :
19+ import matplotlib
20+ import seaborn as sns
21+ except ModuleNotFoundError :
22+ pass
23+ else :
24+ from .utils .stats import summarize_response_metric
25+ from .utils .stats import plot_response_metric
26+ from .utils .stats import plot_2d_respones_metric
Original file line number Diff line number Diff line change 1- from .stats import summarize_response_metric
2- from .stats import prepare_2d_hist_data
31from .utils import version
42from .utils import list_datasets
3+
4+ try :
5+ import matplotlib
6+ import seaborn as sns
7+ except ModuleNotFoundError :
8+ import warnings
9+ warnings .warn (
10+ "package was not availble. To use coderdata.utils.stats functions "
11+ "please make sure 'matplotlib' & 'seaborn' are available in the "
12+ "environment."
13+ )
14+ else :
15+ from .stats import summarize_response_metric
16+ from .stats import plot_response_metric
17+ from .stats import plot_2d_respones_metric
You can’t perform that action at this time.
0 commit comments