Opened 11 years ago

Last modified 5 years ago

#2631 new enhancement

Distinguishing between (un)evaluated cells

Reported by: dunfield Owned by: boothby
Priority: minor Milestone: sage-6.4
Component: notebook Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

There should be a visual distinction between input cells which have been evaluated and those that have not, and also to indicate when a previously evaluated cell has been edited and thus the (apparent) output is not actually the output of the input cell (cf Mathematica's behavior on this). A simple way to do this would be to change the color of evaluated input cells to blue, or to change the color of the boarder of input box. One reason to do this is that it is difficult to tell if you have evaluated a cell whose contents don't return anything (e.g. "a = 1+2").

Change History (7)

comment:1 Changed 11 years ago by gfurnish

  • Milestone set to sage-2.11

comment:2 Changed 11 years ago by was

There should be a visual distinction between input cells which have been evaluated and those that have not,

There already is such a distinction! Unevaluated cells have a red line to the left of them. Maybe this isn't clear enough? Or maybe it is once one knows about it.

also to indicate when a previously evaluated cell has been edited and thus the (apparent) output is not actually the output of the input cell (cf Mathematica's behavior on this).

This is a good idea. Note that having a cell such that "previously evaluated cell has been edited and thus the (apparent) output is not actually the output of the input cell" was only first added to Sage (by Boothby) I think in 2.10.4 (I just noticed it has a massive bug in it too). What does Mathematica do?

comment:3 Changed 11 years ago by dunfield

There already is such a distinction! Unevaluated cells have a red line to the left of them. Maybe this isn't clear enough? Or : maybe it is once one knows about it.

Now that you mention them, I do see these red lines when I load up an old worksheet. But they don't appear when new input cells are created, which is a bug, I think. I was working with fresh worksheets since I've only just started using the notebook, so I didn't see the red lines.

Now that I do see the red lines, I think they're too subtle and a little "busy". I'd suggest changing the color of the input cell frame to red instead --- it would be hard to miss that.

What does Mathematica do?

On evaluation, Mathematica labels the input and output cells by "In[n] :=" and "Out[n] :=" so you can refer to the output later. When you start editing a previously evaluated input cell, the "In" and "Out" disappear. For Sage, you could just have the red line/box reappear if the user starts editing a cell (but not if they simply select it, move the cursor around, but don't actually edit).

comment:4 Changed 6 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:5 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:6 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:7 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4
Note: See TracTickets for help on using tickets.