open-interpreter
open-interpreter copied to clipboard
Option to allow fast running (instead of line by line running) of code.
Is your feature request related to a problem? Please describe.
Interpreter will create code efficiently and then start running it. As it runs, it scrolls through the code line by line to show you where it is during the run. For code that runs quickly and may have a large number of loops, the time to run can be substantially larger than it should be. For example, minutes to hours, to loop through code searching a directory structure for specific files, but if I copy paste the code into a python script, it only takes a few seconds. The latter case doesn't require continual updates to the terminal window.
Describe the solution you'd like
A command line parameter -r or --run_script would run scripts as scripts instead of within the terminal window. The code would still print, but then it would spawn a thread and run in the background. The final output would then be printed. This would not not show line by line debugger-like progress.
Describe alternatives you've considered
No response
Additional context
No response
i had a similar request. #678 i closed it in favour of this one as this was first.
+1
This is a huge problem for me as well. Because it can slow a trivial code by a factor of 100 because of console IO bottleneck (or something else related to interpreter mode)
Closing this stale issue. Please create a new issue if the problem is not resolved or explained in the documentation. Thanks!