Can IPython cell magics get access to a unique cell identifier?
I'm trying to implement magics to support a programming language where
entire modules must be compiled at once. My goal is that all cells in a
notebook with a particular cell magic will be coalesced into a single
module M.
To make this work, when a cell C changes I need to remove the old contents
of C from M and replace them with the new contents of C. However when the
cell magic is called for C, there is no way to tell that it is C and not
any other old or new cell. What I need is an identifier that is constant
between calls to the cell magic.
Is this kind of cell identifier available anywhere in the IPython API?
No comments:
Post a Comment