File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,12 @@ def find_env():
5252 # jupyterlab may not be available
5353 pass
5454 try :
55- import_module ("imjoy-jupyterlab-extension " )
55+ import_module ("imjoy_jupyterlab_extension " )
5656 except ModuleNotFoundError :
57- try :
58- import_module ("imjoy_jupyterlab_extension" )
59- except ModuleNotFoundError :
60- if ENVIRONMENT is Env .JUPYTERLITE :
61- raise RuntimeError ('imjoy-jupyterlab-extension is required. Install the package and refresh page.' )
62- elif sys .version_info .minor > 7 :
63- raise RuntimeError ('imjoy-jupyterlab-extension is required. `pip install itkwidgets[lab]` and refresh page.' )
57+ if ENVIRONMENT is Env .JUPYTERLITE :
58+ raise RuntimeError ('imjoy-jupyterlab-extension is required. Install the package and refresh page.' )
59+ elif sys .version_info .minor > 7 :
60+ raise RuntimeError ('imjoy-jupyterlab-extension is required. `pip install itkwidgets[lab]` and refresh page.' )
6461
6562 try :
6663 import imjoy_elfinder
You can’t perform that action at this time.
0 commit comments