[IPython-dev] Highlight lines of code in code cells?
Gabriel Becker
gmbecker at ucdavis.edu
Mon Dec 2 19:10:26 EST 2013
On Mon, Dec 2, 2013 at 3:54 PM, Mark Voorhies <mark.voorhies at ucsf.edu>wrote:
> On 12/02/2013 03:19 PM, Greg Wilson wrote:
>
> > Thanks,
> > Greg
>
> Just started fiddling with this, using rmagic.py and cythonmagic.py as
> references.
>
> Can anyone point me at documentation for getting at retrieving cell
> content by
> number and/or tag via the IPython shell instance?
>
I could be entirely off base here, but my understanding is that the IPython
kernel (which provides the magics) used by the notebook doesn't have any
concept of cells/the whole notebook in the way you are going to need them.
On the other hand, you could look at implementing this as a js extension on
top of the notebook via, e.g. https://github.com/cemerick/jsdifflib (I have
never used this library, but it came up in a quick google search for js
diffing tools). The design of the tool would need to be different, as
magics don't live in js, but it seems like you could get where you want to
go.
~G
>
> Thanks,
>
> Mark
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
--
Gabriel Becker
Graduate Student
Statistics Department
University of California, Davis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20131202/d9c0a5e6/attachment.html>
More information about the IPython-dev
mailing list