Show PIL image on notebook
On the notebook, after the following code
import Image
im = Image.open(DATA+'tree.png')
im2 = im.rotate(90)
what is the instruction that will show the PIL im2 image ?
On the notebook, after the following code
import Image
im = Image.open(DATA+'tree.png')
im2 = im.rotate(90)
what is the instruction that will show the PIL im2 image ?
import Image
im = Image.open(DATA+'tree.png')
im2 = im.rotate(90)
im2.save('tree2.png')
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2012-08-13 19:04:06 +0100
Seen: 740 times
Last updated: Aug 14 '12
Notebook List Object Data Storage/Retrieval? (Start/Restart)
Short Cython Example In A Notebook Cell?
What happens in insecure mode?
Is notebook() mutually-exclusive from "./sage -gdb" mode?
Can I pause a computation rather than aborting it? (Interrupt Command)
What state is preserved when I close a running notebook browser window?
Just a guess - close the image? It has to actually save in the notebook cell directory to show up.