[IPython-dev] Github - IPy Notebook button

Bartosz mail@telenczuk...
Wed Jun 19 16:57:19 CDT 2013


Hi Thomas,

You're right. Obviously not all bookmarklets are broken. I did some 
further testing and it seems that only secure https pages are blocked 
(which includes github pages). Try for example:

https://raw.github.com/ipython/ipython/master/examples/notebooks/Custom%20Display%20Logic.ipynb


It's probably a bug in Firefox and it is discussed here (no mention of 
https though):

http://stackoverflow.com/questions/7607605/does-content-security-policy-block-bookmarklets

Bartosz

> On 19 June 2013 20:10, Bartosz <mail@telenczuk.pl> wrote:
> 
>> I found that the nbviewer bookmarklet by Matt Davis does not work any
>> more with recent Firefox (v21) due to content security policy (CSP).
>> Therefore I decided to convert it to Greasemonkey script, which is 
>> not
>> affected by CSP.
> 
> Can you clarify why it's not working? Can it be fixed? I can't
> imagine Firefox has broken all bookmarklets, and I don't think
> nbviewer requires any very special features from the browser's point
> of view.
> 
>> The script works with Github repositories. In the GH file browser, it
>> adds a button to the toolbar (next to Raw and History buttons) if the
>> viewed file is an ipython notebook (with .ipynb extension). Clicking 
>> on
>  > the button opens the notebook in NBViewer.
> 
> That's pretty neat as well - thanks!
> 
> Thomas
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev


More information about the IPython-dev mailing list