Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distinguishing between (un)evaluated cells #2631

Closed
NathanDunfield opened this issue Mar 21, 2008 · 3 comments
Closed

Distinguishing between (un)evaluated cells #2631

NathanDunfield opened this issue Mar 21, 2008 · 3 comments

Comments

@NathanDunfield
Copy link

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").

Component: notebook

Issue created by migration from https://trac.sagemath.org/ticket/2631

@williamstein
Copy link
Contributor

comment:2

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?

@NathanDunfield
Copy link
Author

comment:3

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).

@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@boothby
Copy link

boothby commented Mar 29, 2020

comment:8

Closing deprecated notebook tickets

@boothby boothby closed this as completed Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants