javascript
var cell = IPython.notebook.select_next().get_selected_cell()
// Crap as hell but insane anyway
http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
console.log("start");
function getParameterByName(name) {
var param = decodeURIComponent(window.location.hash.substring(window.location.hash.indexOf("param=")+"param=".length))
var json = JSON.parse(param)
return json
name »
}
var v = getParameterByName("ok");
cell.set_text('val 'name' +" = "'+v+'"')
IPython.notebook.execute_cell()