These are chat archives for ipython/ipython
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):
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
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
show() method should be called. However, I have no idea how to achieve that.