File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,16 @@ def find_env():
47
47
try :
48
48
import_module ("imjoy-jupyterlab-extension" )
49
49
except :
50
- raise RuntimeError ('imjoy-jupyterlab-extension is required. `pip install itkwidgets[lab]` and refresh page.' )
50
+ if ENVIRONMENT is Env .JUPYTERLITE :
51
+ print ('imjoy-jupyterlab-extension is required' )
52
+ raise RuntimeError ('imjoy-jupyterlab-extension is required. Install the package and refresh page.' )
53
+ else :
54
+ raise RuntimeError ('imjoy-jupyterlab-extension is required. `pip install itkwidgets[lab]` and refresh page.' )
51
55
52
56
try :
53
57
import imjoy_elfinder
54
58
except :
55
- raise RuntimeError ('imjoy-elfinder is required. `pip install imjoy-elfinder` and refresh page.' )
59
+ if ENVIRONMENT is Env .JUPYTERLITE :
60
+ raise RuntimeError ('imjoy-elfinder is required. Install the package and refresh page.' )
61
+ else :
62
+ raise RuntimeError ('imjoy-elfinder is required. `pip install imjoy-elfinder` and refresh page.' )
You can’t perform that action at this time.
0 commit comments