Message Boards Message Boards

0
|
584 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Evaluate cell without changing cursor position

Posted 3 months ago

In data science I frequently re-evaluate a cell, minorly tweaking it each time. Currently, to do this in Mathematica I must laboriously press Shift+Enter, Up a few times past the output, then left/right until I reach my prior cursor position. On other platforms such as Jupyter Notebook, I can easily evaluate the current cell without losing my cursor position (by default Ctrl+Enter).

Is there any way to bring this functionality to Mathematica? I would suppose tweaking the prior cell is rather common, so it's surprising this workflow is still not well supported.

I found a few discussions that concluded the scripting language does not support this behavior, e.g. https://stackoverflow.com/questions/8479416/evaluate-current-cell-without-leaving-or-losing-the-position-in-it-in-mathematic. I tried a few proposed solutions myself, but they are very clunky and ultimately not usable.

POSTED BY: Dan W
Posted 2 months ago

How about using CLTR-L "Insert Input from Above", tweak code, evaluate and repeat until no more tweaking needed?

POSTED BY: Gustavo Delfino
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract