python-shell icon indicating copy to clipboard operation
python-shell copied to clipboard

Run Python scripts from Node.js with simple (but efficient) inter-process communication through stdio

Results 77 python-shell issues
Sort by recently updated
recently updated
newest added

**The Question**: First of all, thanks for making awesome package, but I got stuck in a small problem. Can I disable splitting line feature? For example, I want python code...

bug
question
has-workaround

I'm calling a python script as such: ``` let options = { scriptPath: bgScriptPath, args: ['process-data', '--site-id', site.id] } let pyshell = new PythonShell(bgScriptPath, options, {mode: 'binery '}) ``` This...

question

How do I run python with `pipenv run python`, instead of `python`? I've installed a module with pipenv, and now I need the script to import that module, but it...

question

Hi, We are trying to pass the filename dynamically in 'make_clustergrammer.py', each call the text file name will be different. ```python fileName = sys.argv[1:] loadFile = ''.join(fileName) decoded_string = bytes(loadFile,...

**Bug description** When or program relies on a python library that has something like `x = input('Please, enter your info: ')` the phrase `'Please enter your info: '` is not...

question

Hi, I was trying to see if I can use python-shell in my react-native project. When I installed it with ` npm install python-shell` everything went find until I run...

question

I try to run a script and communicate with Python, but if Python gets an error, it always crashes node... How can I handle those exceptions? ``` function init(pwmStore) {...

question

@komalpharate in #127 asked how this can be done, but we don't have the ability to do this yet. Would be nice to have.

enhancement
help wanted

I am trying to run a python script within node: var options = { scriptPath: '/var/upload/file-importer', args: ["-f '"+files+"'", "-d " + destination, "-p " + path, "-u " +...

question

Hello, After testing this code... ``` const {PythonShell} = require('python-shell'); var myPythonScriptPath = 'my_script.py'; var pyshell = new PythonShell(myPythonScriptPath); // sends a message to the Python script via stdin pyshell.send(852438003098);...

question