title: How to display a table of images in R output in a Jupyter notebook?
body: <p>How do I take a list of image URLs, and display them in an HTML table in a Jupyter notebook with an R kernel?</p>
  
  <p>Here's a list of URLs:</p>
  
  <pre><code>image_urls = c('https://i.stack.imgur.com/wdQNM.jpg',
    'https://i.stack.imgur.com/8oysP.jpg')
  </code></pre>
  
  <p>Here's some code to display one image from an <code>image_url</code>:</p>
  
  <pre><code>library(jpeg)
  library(RCurl)
  
  img &lt;- RCurl::getBinaryURL(image_url)
  jj &lt;- jpeg::readJPEG(img,native=TRUE)
  plot(0:1,0:1,type="n",ann=FALSE,axes=FALSE)
  rasterImage(jj,0,0,1,1)
  </code></pre>
  
  <p><strong>Edit</strong>: Another way to think of this is, is there functionality like ipython's <code>display</code>?  It looks like there might be in <a href="https://github.com/IRkernel/repr" rel="nofollow noreferrer">https://github.com/IRkernel/repr</a>.  I have to read more.</p>