# 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: **84 times**

Last updated: **Sep 12 '14**

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

problem: content cell wrapped together after publishing

practical documentation for sage; e.g. `%hide` and `%hideall`

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

Multiline equation write form in text cell?

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/