title: Is there a way to make an IPython Notebook output interactivly create an input and execute it?
body: <p>I was wondering if I can make an output interactively run a piece of code. So if for example I had a class (parts in pseudo-code):  </p>
  
  <pre><code>import numpy as np
  
  class test(object):
      def __init__():
          self.a = np.random.randn(10)
          print ## Interactive Output: Click me to view data array##
  
      def show():
          print a
  </code></pre>
  
  <p>So when I create a class instance it should output some interactive link (maybe in html) or something like that and when I click it, the <code>show()</code> method should be called. However, I have no idea how to achieve that.</p>