[IPython-dev] switching between iframes with static widgets?

Wes Turner wes.turner at gmail.com
Wed May 27 09:38:30 EDT 2015


On Wed, May 27, 2015 at 4:04 AM, John Griffiths <j.davidgriffiths at gmail.com>
wrote:

>
> I was wondering if it is possible to use static html widgets to switch
> between iframes, so as to create a sort of interactive image viewer?
>
> Emphasis is on static and iframe (or otherwise non-embedded);
>


> I want this to work off line (e.g. via nbviewer), and don't want to be
> creating huge notebooks with multiple embedded images.
>

So, I put together a rough POC for something similar without IPython a few
weeks ago.

Limitations:

* X-Frame-Options headers [1]
* "Load Unsafe Scripts"

[1]
https://github.com/westurner/browenv/blob/master/scripts/mtmprx/mtmprx_headers.py



> Example gist of what I have in mind here
> <http://nbviewer.ipython.org/urls/gist.githubusercontent.com/anonymous/2975dc7e33da56610e96/raw/dc78a5e95d14470646e1d418f4c0fe90fac945e3/iframes_with_ipywidgets.ipynb>
> ; but this isn't doing the job.
>

* https://github.com/westurner/brw
* https://westurner.org/brw/


>
> Would this be possible?
>
>
> Cheers
>
>
> --
>
> Dr. John Griffiths
>
> Post-Doctoral Research Fellow
>
> Rotman Research Institute, Baycrest
>
> Toronto, Canada
>
> and
>
> Visiting Research Fellow
>
> School of Physics
>
> University of Sydney
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150527/d76deb3b/attachment.html>


More information about the IPython-dev mailing list