Hello,
(This could be related Error when executing the Binder example: “compare images side by side” #455)
It seems that the compare widget is missing:
ImportError Traceback (most recent call last)
Input In [1], in <cell line: 4>()
2 import numpy as np
3 import imageio
----> 4 from itkwidgets import view, compare, checkerboard
ImportError: cannot import name 'compare' from 'itkwidgets' (/home/edgar/.local/lib/python3.10/site-packages/itkwidgets/__init__.py)
__init__.py
does not require it, and it does not seem to exist in the directory, either (ls /home/edgar/.local/lib/python3.10/site-packages/itkwidgets/
)
cm.py
__init__.py
__pycache__
static
trait_types.py
_transform_types.py
_version.py
widget_checkerboard.py
widget_line_profiler.py
widget_viewer.py
I tried this with a jupyter-notebook
and a jupyter-lab
:
import itk
import numpy as np
import imageio
from itkwidgets import view, compare, checkerboard
itkwidgets 0.20.0 (also with 1.08a; 0.32.2 is not installable)
itk 5.3rc4
jupyter-lab 3.4.4
Python 3.10.5 (main, Jun 6 2022, 18:49:26) [GCC 12.1.0]
IPython 8.4.0
notebook server 6.4.12