[IPython-dev] Adding custom JavaScript code

Fernando Perez fperez.net at gmail.com
Wed Mar 5 16:40:26 EST 2014


Hey Konrad:

JS debugging tip: whenever you see something funky, try reloading the
page/app in a *new incognito/private mode window*. Those start with a
completely empty cache and are very stateless.  I've already been fooled a
few times by caching issues that went away once I checked with an incognito
window.

Credit where it's due, Min taught me this :)

f


On Wed, Mar 5, 2014 at 1:59 PM, Konrad Hinsen <konrad.hinsen at fastmail.net>wrote:

> Doug Blank writes:
>
>  > Others will no doubt have detailed help, but here is an example (the
>  > drag and drop images on a notebook) that works with IPython 2.0:
>  >
>  >
> https://bitbucket.org/ipre/calico/src/master/notebooks/profile/static/custom/custom.js#cl-52
>  >
>  > We copy all of those files into new profiles and works fine.
>
> Thanks, that means at least that I have a problem that not everyone has.
>
> I tried your extensions on my installation, but it makes no difference
> at all either. There's no sign that anything changes, and in the
> browser console I can't see any of the definitions made in your JS
> files.
>
>  > As for debugging, I use the Chrome developer tools (right-click on
>  > page, inspect element; select Console tab) to see errors in loading.
>
> What I need to debug is the mechanism that is supposed to load
> custom.js. I don't even know if that's in the Python or the JS part of
> IPython.
>
> Konrad.
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
Fernando Perez (@fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140305/4aa4bdff/attachment.html>


More information about the IPython-dev mailing list