Skip to content

Commit

Permalink
Update create-a-gif-with-python.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnynomnom authored Jun 30, 2024
1 parent f75b942 commit 15c6326
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ You can quickly check if the `imageio` package was successfully installed by ope

Let’s open up a code editor like [VS Code](https://code.visualstudio.com) and create a new file called **create_gif.py**.

To use the `imageio` library, you need to import it in your code. The "v3" in the `import` statement means you're using version 3 of the `imageio` library:
To use the `imageio` library, you need to import it in your code:

```py
import imageio.v3 as iio
```

The `as` part allows you to give the library a shorter name to work with (a nickname/alias), making it more convenient. So we've renamed `imageio.v3` to `iio` moving forward.
The "v3" in the `import` statement means you're using version 3 of the `imageio` library. The `as` part allows you to give the library a shorter name to work with (a nickname/alias), making it more convenient. So we've renamed `imageio.v3` to `iio` moving forward.

Now, run the code to make sure it works. Hopefully there's no error!

Expand Down

0 comments on commit 15c6326

Please sign in to comment.