Hi Savin, Have you tried using cells? You can break your script in cells by adding the special comment "#%%" at the beginning of a line. The cell where the cursor is currently positioned is considered the 'active' cell, and you can run it with "CTRL+ENTER".
https://docs.spyder-ide.org/editor.html#defining-code-cells Kind Regards, Fabio On Monday, September 9, 2019 at 12:13:07 AM UTC-10, Savin Beniwal wrote: > > Dear All > > I would like to attract your attention to my query. The query is as > follows. > > I have written a code of more than 200 lines for my cosmology problem. > Every time, I have to run some lines of this code rather than full code. > For this, Usually, I select these lines and run using F9. Unfortunately, > Now I'm exhausted from this process. I would like to know some other way to > do the same thing, if any. > > Is the following one of the possible way to do above work? > --When I run full file or press F5, so before executing full code, the > console would ask me from which line number to which line number would you > like to run python file? Then console will run only python lines between > the user's defined line number. > It is just my thought, I'm sorry for spyder/python this process may be > pointless. I'm also sorry If couldn't my point clearly. Please let me know. > > I'm eagerly waiting for your reply. > > With Regards!!! > > > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/1fbd67da-ca1d-4dc8-9e2b-6d75751ea2f3%40googlegroups.com.
