Thank you for the feedback. I have found a potentially working approach,
which I thought to share
I can create a cell, which creates a javascript button to run all cells,
and I can include my kernel call in this cell, so
%%HTML
<button id="do_run_all">Click Here to Explore your Data</button>
<script>
$("#do_run_all").click(
function () {
var url = window.location;
var command = "url" + " = '" + url + "'";
var kernel = IPython.notebook.kernel;
kernel.execute(command) ;
$("#run_all_cells").click();
});
</script>
This enables me to provide a 'run all cells' button, which captures the url
for the page using javascript and pushes this into a python kernel name.
As this is run before the 'run all cells' call is executed, there appears
not to be interference causing the kernel.execute to be missed.
I think this works, I'd be interested in feedback on the approach and
concerns it may raise
many thanks
mark
--
You received this message because you are subscribed to the Google Groups
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jupyter/747969dd-2a5b-43a6-bf59-bf32a2bb498e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.