Wonderful. Thanks!

On Wednesday, May 3, 2017 at 5:32:56 AM UTC-7, Min RK wrote:
>
> The editors are codemirror, so you can track the ‘change’ CodeMirror 
> events <https://codemirror.net/doc/manual.html#events> for this. You 
> would need to also track the creation of new cells in order to connect to 
> the events of each CM instance, I suspect.
>
> -Min
>
> On Thu, Apr 27, 2017 at 5:25 PM, Adam Rule <[email protected] <javascript:>> 
> wrote:
>
> I'm working on a notebook + server extension that keeps a detailed history 
>> of notebook edits. I would like to track changes that occur when users edit 
>> a cell, but don't execute it. I'm looking for an event that gets triggered 
>> (or a function that gets called) after a user navigates away from a cell so 
>> that I can check if the cell's input has changed.
>>
>> My current method is to patch `Cell.prototype.unselect` with tracking 
>> code, but this function is called as a part of other actions, like 
>> copy-paste, that I am tracking in other ways. I have also tried 
>> `Notebook.prototype.select` and listening for the event `select.Cell` but 
>> these also get called more frequently than I would like. I've also tried 
>> listening to the cell's on change events but these get fired for every 
>> character that is typed. I'd like to look for changes only once users 
>> navigate away from the cell.
>>
>> Is there a more targeted way to track these cell edits?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jupyter/3fe3bfbf-9a69-4f72-a884-be49ec2ce221%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jupyter/3fe3bfbf-9a69-4f72-a884-be49ec2ce221%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> ​
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/a39d8537-466e-41e7-95dd-f5fa4d01aa60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to