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

Last updated: **Sep 12 '14**

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

Multiline equation write form in text cell?

sage notebook does not respond to commands in cell

Using variables from a %maxima notebook cell?

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

Short Cython Example In A Notebook Cell?

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

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/