Spyder: Run all cells above current cell?

Created on 13 Sep 2019  路  3Comments  路  Source: spyder-ide/spyder

I would like to be able to run all the cells above the current cell, like in Jupyter. I know I can by doing shift-enter many times, or highlighting all the code manually, but this can be time consuming.

I think this would be a nice feature.

Enhancement future

Most helpful comment

I think this would be a nice feature.

I think this should be easy enough to implement after #9725 is implemented.

For reference Jupyter Notebook has these options in a run menu associated with each cell.

  • Run and Select Below
  • Run and Insert Below
  • Run All
  • Run All Above
  • Run All Below

We could add some or all of these to the run menu in Spyder.

It should be possible to add these options to a context menu when a cell is clicked in the outliner or a cell heading in the editor(this might be more tricky)

All 3 comments

I think this would be a nice feature.

I think this should be easy enough to implement after #9725 is implemented.

For reference Jupyter Notebook has these options in a run menu associated with each cell.

  • Run and Select Below
  • Run and Insert Below
  • Run All
  • Run All Above
  • Run All Below

We could add some or all of these to the run menu in Spyder.

It should be possible to add these options to a context menu when a cell is clicked in the outliner or a cell heading in the editor(this might be more tricky)

It should be possible to add these options to a context menu when a cell is clicked in the outliner or a cell heading in the editor(this might be more tricky)

Well we know when we are inside a cell, so that should not be that tricky. I guess we could show it whenever the user clicks inside a cell ?

@EricThomson, thanks for opening the issue! If this is easy enough (as @bcolsen thinks) we could add this for 4.1. If not, I'm afraid it'll have to wait until Spyder 5 (to be released next year).

Was this page helpful?
0 / 5 - 0 ratings