Skip to content

Commit

Permalink
BLD: Update CLI deps and env check
Browse files Browse the repository at this point in the history
  • Loading branch information
bnmajor committed Jul 16, 2023
1 parent e4a96f3 commit 86ac98c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions itkwidgets/integrations/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def find_env():
return Env.JUPYTER_NOTEBOOK
else:
return Env.SAGEMAKER
except AttributeError:
except:
try:
import js
return Env.JUPYTERLITE
Expand All @@ -37,7 +37,7 @@ def find_env():

ENVIRONMENT = find_env()

if ENVIRONMENT is not Env.JUPYTERLITE:
if ENVIRONMENT is not Env.JUPYTERLITE and ENVIRONMENT is not Env.HYPHA:
if ENVIRONMENT is not Env.COLAB:
if ENVIRONMENT is Env.JUPYTER_NOTEBOOK and sys.version_info.minor > 7:
try:
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ lab = [
]
cli = [
"hypha >= 0.15.28",
"IPython >= 8.4.0",
"itk-io >= 5.3.0",
]

notebook = [
Expand Down

0 comments on commit 86ac98c

Please sign in to comment.