movement of the notebook upon evaluation

asked 2017-12-16 10:07:23 -0500

danielvolinski gravatar image

When executing "Run All" on a SageMath notebook with many code cells (let say 100), the notebook moves in a strange way: First it starts from the end of the notebook, and then it moves upward.

I would like the notebook to always show me the cell that is evaluated right now and move accordingly, i.e. downward until it gets to the end of the notebook.

As it works today, I have to search where is the current cell that is been evaluated and move the notebook manually to monitor progress. Moreover, there is no indication that the notebook is evaluation anything. There should be a flashing button that should indicate that the notebook is evaluation something and is not idle.



edit retag flag offensive close merge delete


That sounds strange--I don't know why "Run All" would appear to evaluate cells from bottom to top. Is there someone local to you who you might be able to find who might have experience with the Jupyter notebook and can help you? Otherwise it's hard to know what to say without seeing your notebook. You could also try putting it on You can start, if you have a GitHub account, by forking the sample binder project for Sage:

Iguananaut gravatar imageIguananaut ( 2017-12-19 03:51:57 -0500 )edit

Hi Iguananaut, You can take examples from If you take the first one in category 2-dimensional manifolds: SM_sphere_S2 which contains 160 cells, then evaluate all the notebook, you will see how the notebook "moves". First it shows the bottom of the notebook, then the notebook seems to go up but never showing where is the cell that is currently been evaluated. In order to know were the evaluation takes place, you have to manually look for the cell being evaluated. You have no idea if the evaluation is going on or if it has stopped as a consequence of reaching the file end or having an error.

danielvolinski gravatar imagedanielvolinski ( 2017-12-21 04:22:32 -0500 )edit

Thanks, I'll give it a try. Regardless this is probably a notebook issue not specific to Sage...

Iguananaut gravatar imageIguananaut ( 2018-01-05 09:25:03 -0500 )edit

Any news on this?

danielvolinski gravatar imagedanielvolinski ( 2018-02-18 13:04:43 -0500 )edit

I tried it, and I can see what you're saying, though it's nothing out of the ordinary, especially for a large notebook. It might be nice to have a mode to "follow" the current cell being evaluated, though for a typical notebook (with fewer heavy calculations) this would probably move too fast to be useful. This would be something to bring up with the Jupyter folks though--it's nothing particular to Sage.

Iguananaut gravatar imageIguananaut ( 2018-02-21 07:29:59 -0500 )edit