From the course: Python: Programming Efficiently

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Challenge: Image-editing application

Challenge: Image-editing application - Python Tutorial

From the course: Python: Programming Efficiently

Start my 1-month free trial

Challenge: Image-editing application

(upbeat music) - For your challenge. I would like you to make a rudimentary image editor that adjusts the brightness contrast and saturation of an image using Pillow. Do not worry about saving the image. Before you can do it, I need to show you the easiest way to add interactivity to a Jupiter notebook. Consider for instance, plotting a simple trigonometric function governed by a parameter. I need the math module as well as numpy and Metro lip. I described numpy in detail, in my course on Python Data Analysis. I compute the cos sign over an array over a hundred numbers between zero and one. Here's what it looks like; I can change the shape by modifying the frequency F. Now, we can make this plot interactive, using iPython, widgets, which are collected in the ipython widgets module. We use a FloatSlider to create a control for the frequency, specifying the initial value, minimum, maximum, and step. Setting…

Contents