| 1 | initial version |
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)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.