Linked Questions

8 votes
2 answers
1k views

How can I start REPL at the end of python script for debugging? In Node I can do something like this: code; code; code; require('repl').start(global); Is there any python alternative?
3 votes
0 answers
989 views

Is there an interpreter for Python similar to Pry for Ruby? It is very convenient. I can stop the program wherever I want with a statement like binding.pry, and I can inspect the value of variables, ...
-1 votes
1 answer
160 views

How would you make the IDLE shell, using nothing but Python code? Now, I understand the beggingins, like a simple exec(raw_input('>> ')), but how would you get if and else statments, or for and while ...
0 votes
1 answer
143 views

I'm not sure if there is a way to do this. I use TextWrangle to write my Python script and then use terminal to run it. So, I just run something like python code.py. In my script, I'm doing some data ...
TheStrangeQuark's user avatar
25 votes
5 answers
120k views

Is it possible to have a script like the following in Python? ... Pause -> Wait for the user to execute some commands in the terminal (e.g. to print the value of a variable, to import a library, ...
FJDU's user avatar
  • 1,483
8 votes
8 answers
6k views

I'm relatively new to python but have a bit of experience using IDL. I was wondering if anyone knows if there are equivalent commands in python for IDL's stop and .reset commands. If I'm running some ...
6 votes
6 answers
3k views

After years of research programming in Matlab, I miss the way I could pause a program mid-execution and inspect the variables, do plotting, save/modify data, etc. via the interactive console, and then ...
8 votes
3 answers
2k views

I want to utilize introspection capability of python for debugging/development, but cannot find appropriate tool for this. I need to enter into shell (IPython for example) at specific position or at ...
1 vote
1 answer
4k views

I am currently developing a console application in python.It takes commands from the terminal in the format <my-python-module.py> <command> <other-args> However i want to drop into ...
-6 votes
2 answers
3k views

I am new to Python, have some experience in MatLab and r. My question is: Is it possible to run part of the code in .py block by block (line by line)? In r or Matlab, I can first have some data and ...
Lafayette's user avatar
  • 367
0 votes
3 answers
2k views

I've wanted to try atom as a new IDE for python on macOS, and I've found people usually use the command-line to run scripts with python3 myprogram.py on unix machines. That works for me, but in some ...
4 votes
2 answers
514 views

I am using a piece of software that comes with an embedded (I hope that is the right word) version of IronPython. The IP is there to allow the user to write .py scripts that interact with the program ...
Rick's user avatar
  • 45.7k
1 vote
1 answer
227 views

I'd like to make a py2exe distribution of a python program that invokes python with the -i command line option. Does anyone know if that's possible? Also, for this to work, do I need to do something ...
K. Brafford's user avatar
  • 3,791
-1 votes
1 answer
56 views

So here's what I'm trying to do: The inputs will be in the correct syntax for Python. For example for this part: conditionOne = input() what the input will be something like "and 5 % 2 == 0" So ...