How can I run a script inside the Python shell effectively?

20 Replies, 1091 Views

Hey! I usually just use `import` to run my scripts. Like, if it’s `script.py`, just do `import script` in the shell.

For debugging, I’d recommend using `pdb` or `ipdb` if you want something more interactive.

Also, if you’re looking for a tool, check out PyScripter. It’s lightweight and has a built-in debugger that’s pretty easy to use.



Users browsing this thread: 1 Guest(s)