File tree Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -38,22 +38,16 @@ def find_env():
38
38
39
39
if ENVIRONMENT is not Env .JUPYTERLITE and ENVIRONMENT is not Env .HYPHA :
40
40
if ENVIRONMENT is not Env .COLAB :
41
- if ENVIRONMENT is Env .JUPYTER_NOTEBOOK and sys .version_info .minor > 7 :
42
- try :
43
- import imjoy_jupyter_extension
44
- except :
45
- raise RuntimeError ('imjoy-jupyter-extension is required. `pip install itkwidgets[notebook]` and refresh page.' )
46
- else :
41
+ try :
42
+ import_module ("imjoy-jupyterlab-extension" )
43
+ except ModuleNotFoundError :
47
44
try :
48
- import_module ("imjoy-jupyterlab-extension " )
45
+ import_module ("imjoy_jupyterlab_extension " )
49
46
except ModuleNotFoundError :
50
- try :
51
- import_module ("imjoy_jupyterlab_extension" )
52
- except ModuleNotFoundError :
53
- if ENVIRONMENT is Env .JUPYTERLITE :
54
- raise RuntimeError ('imjoy-jupyterlab-extension is required. Install the package and refresh page.' )
55
- elif sys .version_info .minor > 7 :
56
- raise RuntimeError ('imjoy-jupyterlab-extension is required. `pip install itkwidgets[lab]` and refresh page.' )
47
+ if ENVIRONMENT is Env .JUPYTERLITE :
48
+ raise RuntimeError ('imjoy-jupyterlab-extension is required. Install the package and refresh page.' )
49
+ elif sys .version_info .minor > 7 :
50
+ raise RuntimeError ('imjoy-jupyterlab-extension is required. `pip install itkwidgets[lab]` and refresh page.' )
57
51
58
52
try :
59
53
import imjoy_elfinder
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ Source = "https://github.com/InsightSoftwareConsortium/itkwidgets"
64
64
all = [
65
65
" imjoy-jupyterlab-extension" ,
66
66
" imjoy-elfinder[jupyter]" ,
67
- " imjoy-jupyter-extension" ,
68
67
" aiohttp <4.0"
69
68
]
70
69
lab = [
@@ -82,7 +81,7 @@ cli = [
82
81
]
83
82
84
83
notebook = [
85
- " imjoy-jupyter -extension >=0.3.0 " ,
84
+ " imjoy-jupyterlab -extension" ,
86
85
" imjoy-elfinder[jupyter]"
87
86
]
88
87
test = [
You can’t perform that action at this time.
0 commit comments