Forum Discussion

Ostrzak's avatar
Ostrzak
Helper II
2 years ago
Solved

Running selected cells in a notebook

Hi,

 

I know how to run selected code in a single cell, how to run "above" or "below including current" cells. But is there a way to run selected cells? 

Sounds simple and maybe there is an option, but I couldn't find it. Decided to better run it by the community first.

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Ostrzak ,

     

    As far as I know, you cannot run the code selected in a single cell, you can only run the entire cell or "Run All", "Run Cells Above", "Run Cells Below".

     

    These options can be seen in the screenshot below:

     

    If you want to run a single selected cell, click the triangle icon next to the cell.

     

    If you have any other questions, please feel free to contact me.

    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Ostrzak ,

     

    As far as I know, you cannot run the code selected in a single cell, you can only run the entire cell or "Run All", "Run Cells Above", "Run Cells Below".

     

    These options can be seen in the screenshot below:

     

    If you want to run a single selected cell, click the triangle icon next to the cell.

     

    If you have any other questions, please feel free to contact me.

    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

  • Well, you can run selected code in a cell. My question was about something else, so I'm not sure why it is marked as solved. I wanted to run selected cells in the middle of the notebook.

     

     

  • frithjof_v's avatar
    frithjof_v
    Community Champion

    Ostrzak Have you tried the "Freeze cell" functionality which enables you to "freeze" each cell which you don't want to run?

     

     

    In effect, it should enable you to control which cells in the Notebook gets run.