Ask Your Question

# Revision history [back]

It's easier to have the user's browser do the work if possible. I'm not sure what your specific use case is, but here is an interact which will load a page in a frame:

def iframe(url):
html('<iframe src="%s" style="width: 100%%; height: 400px;"></iframe>'%(url))

@interact
def _(url='http://www.google.com'):
iframe(url)