PythonShell cannot be instantiated without a script
Is there any reason for this? It could be useful to run an interactive session without a script, as if you had run python from a terminal.
It can be run without a script. Take a look at https://github.com/extrabacon/python-shell/blob/master/README.md#runstringcode-options-callback
The question is on whether it can be instantiated without a script, i.e. whether one can save it to a variable and interact with it intermittently the way it is at https://github.com/extrabacon/python-shell#sendmessage.
Ah, I see. Feel free to submit a PR if you want that functionality.
I've been working on a package here which does this. You can start an interactive Python process for executing individual commands, the same as running python in the terminal and entering code line by line. If anyone requires this functionality, I hope this is useful.