<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Gabriel, <div><br></div><div>You screen shot are interesting, </div><div>At some point I played with gridster[1]</div><div><br></div><div>and was more or less able to get cell to rearranges, but didn't keep the code. </div><div>You might be interested. </div><div><br></div><div><div>Keep in mind that the notebook browser-interface we ship is only one possible</div><div>frontend that can interpret ipynb files, nothing prevent you to write a</div><div>different frontend that display the notebook in a different format. </div><div><br></div><div>This added to the fact that each cell can support arbitrary metadata, you</div><div>should be able to arrange preexisting in structure that work together. It might</div><div>be a little difficult to do it right now as our javascript is not yet modular</div><div>enough to be easily reused, but we are moving toward it.</div><div><br></div><div>Right now I thing storing the notebook as a directed graph is problematic in a</div><div>few way, the first being that it is incompatible with the fact that people want</div><div>to be able to run notebook in a headless manner, which if you add explicit</div><div>choice is not possible. This also contradict the fact that the notebook capture</div><div>both the input and the output of the computation. As you showed there is</div><div>actually 18 different combinations of data analysis, and they are not all</div><div>stored in the notebook. </div><div><br></div><div>I really thing this is an interesting project, and reusing only our metadata in</div><div>the notebook, you should be able to  simulate it (store the dag in notebook</div><div>level metadata, and cell id in cell metadata) then reconstruct the graph when</div><div>needed. Keep in mind that at some point we might/will add cell id to the</div><div>notebook.</div><div><br></div><div>To sum up, I don't think the current JS client is in it's current state the</div><div>place to implement such an idea. The Dag for cell order might be an idea for</div><div>future notebook format but need to be well thought, and wait for cell IDs.</div><div><br></div></div><div>-- </div><div>Matthias</div><div><br></div><div><br></div><div><br></div><div>[1] <a href="http://gridster.net/">http://gridster.net/</a></div></body></html>