<div dir="ltr">* For the commandline (not js) runipy may be helpful: <a href="https://github.com/paulgb/runipy">https://github.com/paulgb/runipy</a><div><br></div><div>... from <a href="https://westurner.org/tools/#runipy">https://westurner.org/tools/#runipy</a><br><div><br></div><div><h4 style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:500;line-height:1.1;color:rgb(51,51,51);margin-top:10px;margin-bottom:10px;font-size:18px;padding-bottom:10px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(208,208,208)">runipy<a class="headerlink youarehere" href="https://westurner.org/tools/#runipy" title="Permalink to this headline" style="color:rgb(51,122,183);text-decoration:none;padding-left:5px;font-size:inherit!important;background-color:transparent">⬅</a></h4><div class="line-block" style="margin-top:1em;margin-bottom:1em;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><div class="line" style="box-sizing: border-box;">Src: git <a class="reference external" href="https://github.com/paulgb/runipy" target="_blank" style="color:rgb(51,122,183);text-decoration:none;background-color:transparent">https://github.com/paulgb/runipy</a></div><div class="line" style="box-sizing: border-box;">PyPI: <a class="reference external" href="https://pypi.python.org/pypi/runipy" target="_blank" style="color:rgb(51,122,183);text-decoration:none;background-color:transparent">https://pypi.python.org/pypi/runipy</a></div></div><p style="margin:0px 0px 10px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">runipy runs <a class="reference internal" href="https://westurner.org/tools/#jupyter-notebook" style="color:rgb(51,122,183);text-decoration:none;background-color:transparent">Jupyter notebooks</a> from a <a class="reference internal" href="https://westurner.org/tools/#shells" style="color:rgb(51,122,183);text-decoration:none;background-color:transparent">Shell</a> commandline, generates <cite style="box-sizing: border-box;">HTML</cite> reports, and can write errors to stderr.</p><p style="margin:0px 0px 10px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><a class="reference internal" href="https://westurner.org/tools/#jupyter-notebook" style="color:rgb(51,122,183);text-decoration:none;background-color:transparent">Jupyter notebook</a> <em style="box-sizing: border-box;">manual</em> test review process:</p><div class="code python highlight-python" style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><div class="highlight" style="background:none"><pre style="overflow:auto;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:13px;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;border:1px solid rgb(204,204,204);border-radius:4px;background-color:rgb(245,245,245)"># - run Jupyter Notebook server
!jupyter notebook
# - Browser
#     - navigate to / upload / drag and drop the notebook
        !web <a href="http://localhost:8888">http://localhost:8888</a>   # or https://
#     - (optional) click 'Cell' > 'All Output' > 'Clear'
#     - click 'Cell' > 'Run All'
#     - [wait] <Jupyter Kernel runs notebook>
#     - visually seek for the first ERRoring cell (scroll)
#     - review the notebook
        for (i, o) in notebook_cells:
            human.manually_review((i, o))
# - Compare the files on disk with the most recent commit (HEAD)
!git status && git diff
!git diff mynotebook.ipynb
# - Commit the changes
!git-add-commit "TST: mynotebook: tests for #123" ./mynotebook.ipynb
</pre></div></div><p style="margin:0px 0px 10px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><a class="reference internal" href="https://westurner.org/tools/#jupyter-notebook" style="color:rgb(51,122,183);text-decoration:none;background-color:transparent">Jupyter notebook</a> runipy review process:</p><div class="code python highlight-python" style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><div class="highlight" style="background:none"><pre style="overflow:auto;font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:13px;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;border:1px solid rgb(204,204,204);border-radius:4px;background-color:rgb(245,245,245)"># - runipy the Jupyter notebook
!runipy mynotebook.ipynb
# - review stdout and stderr from runipy
# - review in browser (optional; recommended)
#     - navigate to the converted HTML
        !web ./mynotebook.ipynb.html
#     - visually seek for the first WEEoring cell (scroll)
#     - review the notebook
        for (i, o) in notebook_cells:
            human.manually_review((i, o))
# - Compare the files on disk with the most recent commit (HEAD)
!git status && git diff
!git diff mynotebook.ipynb*
# - Commit the changes
!git-add-commit "TST: mynotebook: tests for #123" ./mynotebook.ipynb*
</pre></div></div><ul class="simple" style="margin-top:0px;margin-bottom:10px;padding-left:18px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><li style="box-sizing: border-box;">An example of runipy usage in a <a class="reference internal" href="https://westurner.org/tools/#make" style="color:rgb(51,122,183);text-decoration:none;background-color:transparent">Makefile</a>: <a class="reference external" href="https://github.com/westurner/notebooks/blob/gh-pages/Makefile" target="_blank" style="color:rgb(51,122,183);text-decoration:none;background-color:transparent">https://github.com/westurner/notebooks/blob/gh-pages/Makefile</a></li></ul></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 11, 2015 at 1:38 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>Has anyone put together a notebook extension that combines the "restart kernel" and "run all cells" menu options into a single button or keyboard shortcut? If so, can you point me to the appropriate repo?</div><div><br></div><div>Thanks for your help!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Nathan</div></font></span></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" rel="noreferrer" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>