ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 15 Sep 2014 07:53:07 -0500How can I get the cell id of the current cell in a worksheet?http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/How can I get the cell id of the current cell I work with?
I think of something like:
<code>self.get_current_id()</code>
Mon, 08 Sep 2014 12:18:30 -0500http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/Comment by kcrisman for <p>How can I get the cell id of the current cell I work with?
I think of something like:
<code>self.get_current_id()</code></p>
http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/?comment=24060#post-id-24060I think this question is more or less answered at http://ask.sagemath.org/question/8954/how-can-a-cell-output-its-own-id/Mon, 08 Sep 2014 12:54:53 -0500http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/?comment=24060#post-id-24060Answer by balduin for <p>How can I get the cell id of the current cell I work with?
I think of something like:
<code>self.get_current_id()</code></p>
http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/?answer=24100#post-id-24100<code>sagenb.notebook.interact.SAGE_CELL_ID</code>
is exactly what I want. For more information see this answer: http://ask.sagemath.org/question/8954/how-can-a-cell-output-its-own-id/. Big thanks to [kcrisman](http://ask.sagemath.org/users/41/kcrisman/).Fri, 12 Sep 2014 07:40:31 -0500http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/?answer=24100#post-id-24100Comment by kcrisman for <p><code>sagenb.notebook.interact.SAGE_CELL_ID</code>is exactly what I want. For more information see this answer: <a href="http://ask.sagemath.org/question/8954/how-can-a-cell-output-its-own-id/">http://ask.sagemath.org/question/8954...</a>. Big thanks to <a href="http://ask.sagemath.org/users/41/kcrisman/">kcrisman</a>.</p>
http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/?comment=24131#post-id-24131No worries! Now you have a useful answer.Mon, 15 Sep 2014 07:53:07 -0500http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/?comment=24131#post-id-24131Comment by balduin for <p><code>sagenb.notebook.interact.SAGE_CELL_ID</code>is exactly what I want. For more information see this answer: <a href="http://ask.sagemath.org/question/8954/how-can-a-cell-output-its-own-id/">http://ask.sagemath.org/question/8954...</a>. Big thanks to <a href="http://ask.sagemath.org/users/41/kcrisman/">kcrisman</a>.</p>
http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/?comment=24101#post-id-24101the problem was I could not convert kcrisman's answer to an answer.Fri, 12 Sep 2014 07:41:26 -0500http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/?comment=24101#post-id-24101Answer by FrédéricC for <p>How can I get the cell id of the current cell I work with?
I think of something like:
<code>self.get_current_id()</code></p>
http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/?answer=24061#post-id-24061 You can click on the EDIT button (at the top right) to see the id of all cells.Mon, 08 Sep 2014 12:56:28 -0500http://ask.sagemath.org/question/24058/how-can-i-get-the-cell-id-of-the-current-cell-in-a-worksheet/?answer=24061#post-id-24061