First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 12 years ago

ooglyboogly gravatar image

How can a cell output its own ID?

I understand this works:

    C = sage.server.notebook.cell.Cell(0, '2+3', '5', None)
    C.id()

But I don't know understand how you can find that out for some arbitrary cell.

So far, the only way I know how is to use the interact decorator, and see what cell ids are used in the HTML.

click to hide/show revision 2
No.2 Revision

How can a cell output its own ID?

I understand this works:

    C = sage.server.notebook.cell.Cell(0, '2+3', '5', None)
    C.id()

But I don't know understand how you can find that out for some arbitrary cell.

So far, the only way I know how is to use the interact decorator, and see what cell ids are used in the HTML.

EDIT:

Also, where is this javascript interact() function the interact documentation refers to a few times?

click to hide/show revision 3
No.3 Revision

How can a cell output its own ID?

I understand this works:

    C = sage.server.notebook.cell.Cell(0, '2+3', '5', None)
    C.id()

But I don't know understand how you can find that out for some arbitrary cell.

So far, the only way I know how is to use the interact decorator, and see what cell ids are used in the HTML.

EDIT:

Also, where is this javascript interact() function the interact documentation refers to a few times?

click to hide/show revision 4
retagged

updated 10 years ago

FrédéricC gravatar image

How can a cell output its own ID?

I understand this works:

    C = sage.server.notebook.cell.Cell(0, '2+3', '5', None)
    C.id()

But I don't know understand how you can find that out for some arbitrary cell.

So far, the only way I know how is to use the interact decorator, and see what cell ids are used in the HTML.