Importing Images

Hello, I want to use matplotlib with pyplot and image as modules.
However, I cannot use my computer directory straight from codecadamy, as codecadamy does not have access to my
computer’s files.
How can I import images into codecadamy?

You can’t.

Can you use Jupyter or Colab on you computer?

Yes, I have jupyter notebooks on my computer.

You cannot import images into the CC learning environment (LE).

On your computer, you can use the Python Imaging Library, or PIL. Pillow is the fork of that library. You can read about it here:

I don’t really know anything about it.

from PIL import image
image = image.open('image.png')
...etc
1 Like