# 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:
`self.get_current_id()`

How can I get the cell id of the current cell in a worksheet?

`self.get_current_id()`

1

`sagenb.notebook.interact.SAGE_CELL_ID`

is exactly what I want. For more information see this answer: http://ask.sagemath.org/question/8954.... Big thanks to kcrisman.

Asked: **
2014-09-08 12:18:30 -0500
**

Seen: **87 times**

Last updated: **Sep 12 '14**

How can I plot matrices from Database into different sage cells?

problem: content cell wrapped together after publishing

plotting 5,8,16,24,120 and 600-cells

Sage Notebook: Add New Method to Evaluate All Cells with ...

Short Cython Example In A Notebook Cell?

disabling WYSIWYG for text cell in a worksheet

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

I think this question is more or less answered at http://ask.sagemath.org/question/8954/how-can-a-cell-output-its-own-id/