TimeTravel diffs

79 views
Skip to first unread message

William Stein

unread,
Sep 8, 2016, 2:59:45 PM9/8/16
to sage-cloud, sage-cloud-members
Hi,

I just released a new SageMathCloud feature -- TimeTravel diffs: click changes, drag sliders, and see what changed in a file during any interval. This works for all editor based documents, e.g., code, sage worksheets, etc. (Not available for Jupyter notebooks yet.) You can see exactly what happened with a file during any interval of time.

William

--

Best Regards,
William Stein

CEO, SageMath, Inc.
Screen Shot 2016-09-08 at 11.56.01 AM.png

Jason Grout

unread,
Sep 8, 2016, 4:52:58 PM9/8/16
to sage-cloud, sage-cloud-members
This is really cool! Thanks!

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cloud/CA%2BjwZMjqRhvKjueNG9q8aSzAZOc77711AEcM2EgL86r3uR_eEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

William Stein

unread,
Sep 8, 2016, 4:58:55 PM9/8/16
to sage-cloud, sage-cloud-members
On Thu, Sep 8, 2016 at 1:52 PM, Jason Grout <ja...@jasongrout.org> wrote:
This is really cool! Thanks!

Any thoughts about a Jupyter version?   Basically one would want to show only cells that have somehow changed, and *within* the input for each such cell, use basically the diff viewer here as is.  Maybe ignore output.   Not so sure about re-ordering of cells...

 -- William
 

On Thu, Sep 8, 2016 at 2:59 PM William Stein <wst...@sagemath.com> wrote:
Hi,

I just released a new SageMathCloud feature -- TimeTravel diffs: click changes, drag sliders, and see what changed in a file during any interval. This works for all editor based documents, e.g., code, sage worksheets, etc. (Not available for Jupyter notebooks yet.) You can see exactly what happened with a file during any interval of time.

William

--

Best Regards,
William Stein

CEO, SageMath, Inc.

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cloud/CAPDWZHx6V3%3DH4ihYck2zA3hVQ-WNSHeqQYUUoCFoDYO_N6GntA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

Jason Grout

unread,
Sep 8, 2016, 10:14:04 PM9/8/16
to sage-...@googlegroups.com, sage-cloud-members, Min RK
Yeah, intelligently calculating or showing a diff for structured data can be tricky. A couple of thoughts:

1. Min RK and others are working on a diffing tool for notebooks, but this may be too heavy-weight for what you want: https://github.com/jupyter/nbdime

2. You could show a text-only version of the diff - basically create your own very simple notebook viewer that splats the text into a codemirror with delimiters for the cells and use your existing diff viewer. For the purposes of seeing what text changed, this would go a long way. Another approach is to convert the notebook to a simple sage worksheet view and do the diff there.

Thanks,

Jason

On Thu, Sep 8, 2016 at 4:58 PM William Stein <wst...@sagemath.com> wrote:
On Thu, Sep 8, 2016 at 1:52 PM, Jason Grout <ja...@jasongrout.org> wrote:
This is really cool! Thanks!

Any thoughts about a Jupyter version?   Basically one would want to show only cells that have somehow changed, and *within* the input for each such cell, use basically the diff viewer here as is.  Maybe ignore output.   Not so sure about re-ordering of cells...

 -- William
 
On Thu, Sep 8, 2016 at 2:59 PM William Stein <wst...@sagemath.com> wrote:
Hi,

I just released a new SageMathCloud feature -- TimeTravel diffs: click changes, drag sliders, and see what changed in a file during any interval. This works for all editor based documents, e.g., code, sage worksheets, etc. (Not available for Jupyter notebooks yet.) You can see exactly what happened with a file during any interval of time.

William

--

Best Regards,
William Stein

CEO, SageMath, Inc.

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

Best Regards,
William Stein

CEO, SageMath, Inc.

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cloud/CA%2BjwZMgiTWwmSegrYCpgGAXgYCktgnrdRgG1tCV%2Bgm3DQRktBQ%40mail.gmail.com.

William Stein

unread,
Sep 9, 2016, 11:52:29 AM9/9/16
to sage-...@googlegroups.com, sage-cloud-members, Min RK


On Thursday, September 8, 2016, Jason Grout <ja...@jasongrout.org> wrote:
Yeah, intelligently calculating or showing a diff for structured data can be tricky. A couple of thoughts:

1. Min RK and others are working on a diffing tool for notebooks, but this may be too heavy-weight for what you want: https://github.com/jupyter/nbdime


One requirement is that is be client side JavaScript, since the idea is that you drag a slider and quickly see the results of diff'ing -- it's nice to avoid any backend back-and-forth for this sort of thing. Still it's good to know about nbdime. 

 
2. You could show a text-only version of the diff - basically create your own very simple notebook viewer that splats the text into a codemirror with delimiters for the cells and use your existing diff viewer. For the purposes of seeing what text changed, this would go a long way. Another approach is to convert the notebook to a simple sage worksheet view and do the diff there.

Those are some great ideas.  Thanks; I hope to do something soon-ish.
 

Thanks,

Jason

On Thu, Sep 8, 2016 at 4:58 PM William Stein <wst...@sagemath.com> wrote:
On Thu, Sep 8, 2016 at 1:52 PM, Jason Grout <ja...@jasongrout.org> wrote:
This is really cool! Thanks!

Any thoughts about a Jupyter version?   Basically one would want to show only cells that have somehow changed, and *within* the input for each such cell, use basically the diff viewer here as is.  Maybe ignore output.   Not so sure about re-ordering of cells...

 -- William
 
On Thu, Sep 8, 2016 at 2:59 PM William Stein <wst...@sagemath.com> wrote:
Hi,

I just released a new SageMathCloud feature -- TimeTravel diffs: click changes, drag sliders, and see what changed in a file during any interval. This works for all editor based documents, e.g., code, sage worksheets, etc. (Not available for Jupyter notebooks yet.) You can see exactly what happened with a file during any interval of time.

William

--

Best Regards,
William Stein

CEO, SageMath, Inc.

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--

Best Regards,
William Stein

CEO, SageMath, Inc.

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-cloud+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cloud/CAPDWZHw%3DVuc0asykwr-W4Cd88rx%2B0x_EUt%2BQYvhkdfnDDvJ_yw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages