From e91445b4bd30705fc75a4fca92c6ca8ef8eb07e8 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sun, 5 Jul 2015 02:46:04 +0300 Subject: [PATCH] runtime --- docs/build_notebooks.jl | 5 ++++- docs/tutorials/index.rst | 2 ++ docs/tutorials/notebooks.rst | 10 ++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 docs/tutorials/notebooks.rst diff --git a/docs/build_notebooks.jl b/docs/build_notebooks.jl index 399b792..af554a1 100644 --- a/docs/build_notebooks.jl +++ b/docs/build_notebooks.jl @@ -1,5 +1,6 @@ cd(dirname(@__FILE__)) do +k = 0 results = Dict[] for ipynb in readdir("tutorials") tic() @@ -9,8 +10,10 @@ for ipynb in readdir("tutorials") runtime = 0 status = 1 println("Running notebook tutorials/$ipynb") + port = 34211+k + k += 1 try - run(`runipy -o tutorials/$ipynb --kernel=julia-0.4 --port=34211`) + run(`runipy -o tutorials/$ipynb --kernel=julia-0.4 --port=$port`) status = 0 catch println("did not work") diff --git a/docs/tutorials/index.rst b/docs/tutorials/index.rst index 2a0043e..42323e2 100644 --- a/docs/tutorials/index.rst +++ b/docs/tutorials/index.rst @@ -3,5 +3,7 @@ Tutorials Tutorials are automatically generated each time new commit is done. +.. |pass| image:: ../assets/build-passing-brightgreen.svg + .. include:: notebooks.rst diff --git a/docs/tutorials/notebooks.rst b/docs/tutorials/notebooks.rst new file mode 100644 index 0000000..06a0b26 --- /dev/null +++ b/docs/tutorials/notebooks.rst @@ -0,0 +1,10 @@ + +This is a placeholder. If you see this text, something has gone wrong with running notebooks. + ++----+-----------+------------------------------+------------+---------+--------+------+-----+ +| id | author | description | last run | runtime | status | html | pdf | ++====+===========+==============================+============+=========+========+======+=====+ +| 1 | Jukka Aho | This is placeholder notebook | 2015-07-05 | 123.45 | |pass| | html | pdf | ++----+-----------+------------------------------+------------+---------+--------+------+-----+ + +End of placeholder.