run all cells on startup

2,449 views
Skip to first unread message

marq h

unread,
Jul 14, 2016, 4:38:44 AM7/14/16
to Project Jupyter
hi jupyter folks

I have carefully read http://jupyter-notebook.readthedocs.io/en/latest/security.html and I believe I understand the model enough to manage the risks in what I want to do.

I have a carefully controlled jupyter notebook which has been trusted.

I want to open this notebook from the command line, starting a new jupyter server and directing my browser directly to this notebook, then run all the cells within the notebook;  I would like the running of the cells to happen automatically, without any input from me.

Given that I already have trust, do you suggestions of a neat way that I can tell my jupyter instance that, in this particular case, I want all the cells to run straight away?

many thanks
mark

marq h

unread,
Jul 20, 2016, 11:00:08 AM7/20/16
to Project Jupyter
I assume that the lack of response to this query indicates that this is not a plausible thing to implement?

Is this a fair conclusion?

cheers
mark

Thomas Kluyver

unread,
Jul 20, 2016, 11:09:51 AM7/20/16
to Project Jupyter
On 20 July 2016 at 16:00, marq h <mar...@gmail.com> wrote:
I assume that the lack of response to this query indicates that this is not a plausible thing to implement?

I think it's plausible with a bit of custom javascript. Most of the people who would normally answer your query were away at a conference last week.

Thomas

AO MO

unread,
Jul 20, 2016, 11:23:25 AM7/20/16
to Project Jupyter
Hi Marq,

I could not figure out if this is possible in the last 12 months.

It may be possible through this nbextension:
Python-Markdown

I did not manage to make it run python code on startup, however. If you can do it, please post your method here.

Take care.

Aaron Watters

unread,
Jul 20, 2016, 12:05:52 PM7/20/16
to Project Jupyter
Something like this?


%%HTML
<button id="do_run_all">Click to run all</button>
<script>
$("#do_run_all").click(
    function () {
        $("#run_all_cells").click();
    }
);
</script>

Hai Nguyen

unread,
Jul 20, 2016, 1:20:48 PM7/20/16
to jup...@googlegroups.com
but my reply was deleted since developers discourage to do that.
you can resend that message to you if you send me offlist.

Hai

--
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 jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/83c9aaa1-791d-4337-a157-1f138b458ea9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Hai Nguyen

unread,
Jul 20, 2016, 1:22:08 PM7/20/16
to jup...@googlegroups.com
You can actually see my reply in Matthias's quote in that link :D

Hai

marq h

unread,
Jul 27, 2016, 3:38:25 PM7/27/16
to Project Jupyter
Hi Aaron

I don't want this behaviour for many notebooks, just one or two particular ones.  This approach enables me to have a

'Press Me!'

button to get things going, which is helpful for new users

thank you
mark
Reply all
Reply to author
Forward
0 new messages