I downloaded the library from the teaching materials, when trying to use the function into the spyder console it shows this error:
images.visd('cane.png') Traceback (most recent call last): File "C:\Users\User\anaconda3\lib\site-packages\IPython\core\formatters.py", line 345, in __call__ return method() File "C:\Users\User\OneDrive\Python\HW5opt\images.py", line 42, in _repr_png_ img.save(b) File "C:\Users\User\OneDrive\Python\HW5opt\png.py", line 1280, in save w.write(file, self.rows) File "C:\Users\User\OneDrive\Python\HW5opt\png.py", line 621, in write nrows = self.write_passes(outfile, rows) File "C:\Users\User\OneDrive\Python\HW5opt\png.py", line 779, in write_passes extend(row) File "C:\Users\User\OneDrive\Python\HW5opt\png.py", line 767, in <lambda> return lambda sl: f([int(x) for x in sl]) File "C:\Users\User\OneDrive\Python\HW5opt\png.py", line 767, in <listcomp> return lambda sl: f([int(x) for x in sl]) ValueError: invalid literal for int() with base 10: 'a' <images.Image at 0x190cfb87af0>