Reset ipython kernel

Even though it would be handy if %reset would clear the namespace and the cache for the imports (as in the notebook) one can explicitly reload a previously imported module using importlib.reload in python3.4 or imp.reload in python3.0-3.3 (and if needed reset the kernel in a second step).

Force browser to reload index.htm

OK, apparently no-cache was not enough. The following does the trick: <meta http-equiv=”cache-control” content=”no-cache, must-revalidate, post-check=0, pre-check=0″ /> <meta http-equiv=”cache-control” content=”max-age=0″ /> <meta http-equiv=”expires” content=”0″ /> <meta http-equiv=”expires” content=”Tue, 01 Jan 1980 1:00:00 GMT” /> <meta http-equiv=”pragma” content=”no-cache” />

How do I detect a page refresh using jquery?

$(‘body’).bind(‘beforeunload’,function(){ //do something }); But this wont save any info for later, unless you were planning on saving that in a cookie somewhere (or local storage) and the unload event does not always fire in all browsers. Example: http://jsfiddle.net/maniator/qpK7Y/ Code: $(window).bind(‘beforeunload’,function(){ //save info somewhere return ‘are you sure you want to leave?’; });