This repository was archived by the owner on Sep 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +25
-13
lines changed
pyemma/_base/progress/reporter Expand file tree Collapse file tree 4 files changed +25
-13
lines changed Original file line number Diff line number Diff line change 1
1
jobs :
2
2
- job : ' Linux'
3
3
pool :
4
- vmImage : ' Ubuntu-18 .04'
4
+ vmImage : ' ubuntu-22 .04'
5
5
timeoutInMinutes : 360
6
6
7
7
strategy :
8
8
matrix :
9
- Python37 :
10
- CONDA_PY : ' 3.7'
11
- CONDA_NPY : ' 1.18'
12
9
Python38 :
13
10
CONDA_PY : ' 3.8'
14
11
CONDA_NPY : ' 1.18'
15
12
Python39 :
16
13
CONDA_PY : ' 3.9'
17
14
CONDA_NPY : ' 1.19'
15
+ Python310 :
16
+ CONDA_PY : ' 3.10'
17
+ CONDA_NPY : ' 1.21'
18
18
19
19
maxParallel : 10
20
20
Original file line number Diff line number Diff line change 2
2
- job :
3
3
displayName : " OS X"
4
4
pool :
5
- vmImage : ' macOS-10.15 '
5
+ vmImage : ' macOS-11 '
6
6
strategy :
7
7
matrix :
8
- Python37 :
9
- CONDA_PY : ' 3.7'
10
- CONDA_NPY : ' 1.18'
11
8
Python38 :
12
9
CONDA_PY : ' 3.8'
13
10
CONDA_NPY : ' 1.18'
14
11
Python39 :
15
12
CONDA_PY : ' 3.9'
16
13
CONDA_NPY : ' 1.19'
14
+ Python310 :
15
+ CONDA_PY : ' 3.10'
16
+ CONDA_NPY : ' 1.21'
17
17
18
18
steps :
19
19
- template : checkout.yml
Original file line number Diff line number Diff line change 5
5
vmImage : " windows-2019"
6
6
strategy :
7
7
matrix :
8
- Python37 :
9
- CONDA_PY : ' 3.7'
10
- CONDA_NPY : ' 1.18'
11
8
Python38 :
12
9
CONDA_PY : ' 3.8'
13
10
CONDA_NPY : ' 1.18'
14
11
Python39 :
15
12
CONDA_PY : ' 3.9'
16
13
CONDA_NPY : ' 1.19'
14
+ Python310 :
15
+ CONDA_PY : ' 3.10'
16
+ CONDA_NPY : ' 1.21'
17
17
18
18
steps :
19
19
- template : checkout.yml
Original file line number Diff line number Diff line change 1
1
from numbers import Integral
2
+ from typing import Optional
2
3
3
4
4
5
def _simple_memorize (f ):
@@ -12,12 +13,23 @@ def wrapper():
12
13
return wrapper
13
14
14
15
16
+ def _ipywidgets_major_version () -> Optional [int ]:
17
+ r""" Determine ipywidgets major version if possible, otherwise return None. """
18
+ import ipywidgets
19
+ if hasattr (ipywidgets , '__version__' ):
20
+ return int (ipywidgets .__version__ .split ('.' )[0 ])
21
+ elif hasattr (ipywidgets , 'version_info' ):
22
+ return ipywidgets .version_info [0 ]
23
+ else :
24
+ return None
25
+
26
+
15
27
@_simple_memorize
16
28
def _attached_to_ipy_notebook_with_widgets ():
17
29
try :
18
30
# check for widgets
19
- import ipywidgets
20
- if ipywidgets . version_info [ 0 ] < 4 :
31
+ version = _ipywidgets_major_version ()
32
+ if version is None or version < 4 :
21
33
raise ImportError ()
22
34
# check for ipython kernel
23
35
from IPython import get_ipython
You can’t perform that action at this time.
0 commit comments