<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Good examples. Thanks for this.<BR>
<BR>
But is it possible to attach remote engines to the notebook cluster?<BR>
Or attach the notebook to a running ipcontroller?<BR>
<BR>
On Thu, 2012-07-19 at 20:50 -0500, MinRK wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
On Thu, Jul 19, 2012 at 6:03 PM, Darren Govoni <<A HREF="mailto:darren@ontrenet.com">darren@ontrenet.com</A>> wrote:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
Do any of the image processing cells in your image notebook (which is great help btw!) implicitly leverage<BR>
ipython's parallel flows at all?<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Nope. It's just a transcript of a demo doing basic work with images in numpy, matplotlib, and PIL.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
The parallel code is not terribly hidden or implicit, so it should be apparent when it is in use.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
For that, you should check out our <A HREF="https://github.com/ipython/ipython-in-depth">tutorial notebooks</A> from the presentation this week.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<BR>
On Wed, 2012-07-18 at 16:49 -0500, MinRK wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
On Wed, Jul 18, 2012 at 4:12 PM, Thomas Kluyver <<A HREF="mailto:takowl@gmail.com">takowl@gmail.com</A>> wrote:<BR>
<BLOCKQUOTE>
Hi Darren, <BR>
<BR>
On 18 July 2012 22:01, Darren Govoni <<A HREF="mailto:darren@ontrenet.com">darren@ontrenet.com</A>> wrote:<BR>
> 1) Is there a thorough tutorial on notebook? From hello world to the UI<BR>
> features?<BR>
<BR>
<BR>
There's a folder of example notebooks, including an introduction one.<BR>
They may have come with your installation, depending on where you got<BR>
it from, or you can get them here:<BR>
<A HREF="https://github.com/ipython/ipython/tree/master/docs/examples/notebooks">https://github.com/ipython/ipython/tree/master/docs/examples/notebooks</A> <BR>
<BR>
> 2) I want to do some image processing with it. Is there an example (or is it possible) > to interact with image data? e.g. run some ipython code, return/display the image result?<BR>
<BR>
<BR>
It's certainly possible, although I don't know if there's an example<BR>
yet. For simple cases, matplotlib has imread() and imshow() functions.<BR>
Working with PIL might need a little integration, but hopefully just a<BR>
few extra lines. <BR>
</BLOCKQUOTE>
<BR>
<BR>
Here is a notebook I made while trying to follow along with one of Fernando's Py4Science tutorials, which covered working with image data:<BR>
<BR>
<BR>
<A HREF="https://gist.github.com/3139142">https://gist.github.com/3139142</A><BR>
<BR>
<BR>
It includes the code for automatically displaying PIL objects as images in the notebook, which I added later:<BR>
<BR>
<BR>
from io import BytesIO<BR>
<BR>
<BR>
def display_image(img, format='PNG'):<BR>
fp = BytesIO()<BR>
img.save(fp, format=format)<BR>
return fp.getvalue()<BR>
<BR>
<BR>
ip = get_ipython()<BR>
png_formatter = ip.display_formatter.formatters['image/png']<BR>
png_formatter.for_type_by_name('Image', 'Image', display_image)<BR>
<BR>
<BR>
which we might want to have on by default.<BR>
<BR>
<BR>
-MinRK<BR>
<BR>
<BR>
<BR>
<BLOCKQUOTE>
<BR>
Best wishes,<BR>
Thomas <BR>
_______________________________________________<BR>
IPython-User mailing list<BR>
<A HREF="mailto:IPython-User@scipy.org">IPython-User@scipy.org</A><BR>
<A HREF="http://mail.scipy.org/mailman/listinfo/ipython-user">http://mail.scipy.org/mailman/listinfo/ipython-user</A><BR>
<BR>
</BLOCKQUOTE>
<BR>
<PRE>
_______________________________________________
IPython-User mailing list
<A HREF="mailto:IPython-User@scipy.org">IPython-User@scipy.org</A>
<A HREF="http://mail.scipy.org/mailman/listinfo/ipython-user">http://mail.scipy.org/mailman/listinfo/ipython-user</A>
</PRE>
</BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<BR>
_______________________________________________<BR>
IPython-User mailing list<BR>
<A HREF="mailto:IPython-User@scipy.org">IPython-User@scipy.org</A><BR>
<A HREF="http://mail.scipy.org/mailman/listinfo/ipython-user">http://mail.scipy.org/mailman/listinfo/ipython-user</A><BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<PRE>
_______________________________________________
IPython-User mailing list
<A HREF="mailto:IPython-User@scipy.org">IPython-User@scipy.org</A>
<A HREF="http://mail.scipy.org/mailman/listinfo/ipython-user">http://mail.scipy.org/mailman/listinfo/ipython-user</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>