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

Last updated: **Sep 12 '14**

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

how to render a latex string in a notebook cell

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

How to delete blank text cells

Using variables from a %maxima notebook cell?

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

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/