[IPython-dev] change or interact with the html into ipython profile
Matthias BUSSONNIER
bussonniermatthias at gmail.com
Fri Dec 5 09:42:11 EST 2014
Le 5 déc. 2014 à 14:34, Lucien Boillod a écrit :
> Hello,
>
> I currently create a custom ipython notebook profile, and I wonder if there is a way to interact with the source html.
> Basically I wanted to change the href of the title ( which is "/tree/“ by default ) so I tried to do it with the custom.js like that:
>
> $('.ipython_notebook').each(function() {
> var link = $(this).html();
> $(this).contents().wrap('<a href="www.google.com"></a>');
> });
>
Not sure what you want to achieve, and what you call 'title' The IPython logo ?
$('#ipython_notebook >a').attr('href','//www.google.com')
??
--
M
> But it seems not work, it not changing the html at all.
> Do someone as a method to do that and interact with the html ??
>
> Thank you,
>
> Cheers,
>
> Lucien Boillod
> _______________________________________________
> 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/20141205/c775e464/attachment.html>
More information about the IPython-dev
mailing list