At that point you might want to just create a notebook extension that
adds a button to the toolbar.

And keep in mind that this will work only when using the live notebook.

-- 
M

On Fri, Aug 5, 2016 at 8:16 AM, marq h <[email protected]> wrote:
> 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.

-- 
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/CANJQusWT5cb9Y2C4Xrp687set8gLZHQMQT%3D447%3DXpz2x6od0rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to