<html>#2577: CactusTutorial.ipynb contains code only suitable or tutorial server
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td>development version</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td>EinsteinToolkit Virtual Machine</td></tr>
</table>

<p>Comment (by Gabriele Bozzola):</p>
<p>Thank you very much for your taking the time to type the reasoning behind what is being done. It all makes sense.</p>
<p>My comment comes from putting myself in the shoes of a new user, so the use I had in mind for the notebook is “document to describe the first steps to someone that wants to try out the code”.  For this use case, I think that the notebook (primarily the visualization section) obfuscates some points by adding complexity. For instance, when I tell people how to make a visualization of timeseries with <code>kuibit</code>, I tell them “cd into the directory of your data, and run <code>plot_timeseries.py --variable "rho" --reduction "maximum"”</code>, but this is what we have (in the PR at least): </p>
<div class="codehilite language-shell"><pre><span></span>%%bash
<span class="c1"># See comment before</span>
<span class="nb">export</span> <span class="nv">PYTHONUSERBASE</span><span class="o">=</span><span class="s2">&quot;</span><span class="nv">$HOME</span><span class="s2">/Cactus&quot;</span>

<span class="c1"># Here we define a bash variable that contains the path where</span>
<span class="c1"># the simulation data lives. We do so to keep this tutorial general.</span>
<span class="c1"># Normally you would just input the path or you would run the</span>
<span class="c1"># script directly from the data directory.</span>
<span class="nv">datadir</span><span class="o">=</span><span class="k">$(</span>dirname <span class="k">$(</span>./simfactory/bin/sim get-output-dir tov_ET<span class="k">))</span>

<span class="c1"># Plot a timeseries with the maximum of the density</span>
./utils/Analysis/kuibit/examples/bins/plot_timeseries.py --datadir <span class="nv">$datadir</span> <span class="se">\</span>
--variable <span class="s2">&quot;rho&quot;</span> --reduction <span class="s2">&quot;maximum&quot;</span> --outdir <span class="nv">$datadir</span>


from IPython.display import Image

<span class="c1"># datadir is the top-level directory that contains that data for</span>
<span class="c1"># a given si
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2577/cactustutorialipynb-contains-code-only'>https://bitbucket.org/einsteintoolkit/tickets/issues/2577/cactustutorialipynb-contains-code-only</a></p>
</html>