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

**Describe the bug** `python-shell` doesn't work on [Bun](https://github.com/oven-sh/bun). **Python code** See the below. **Javascript code** https://github.com/extrabacon/python-shell#running-python-code ```js import { PythonShell } from 'python-shell'; PythonShell.runString('x=1+1;print(x)', null).then((messages) => { console.log('finished'); }); ```...

bug

**Describe the bug** tried while loop to get print statement but to realtime console log of the print statemnt. ```js pyshell.on('message', function (message) { // received a message sent from...

bug

Changed checkSyntax to no longer write to files. Also, created separation between checkSyntax & checkSyntaxFile, as well as added more test cases & python files to ensure syntax checking is...

The NewlineTransformer has a ts-ignore that says node ignores the encoding if it's a number. This is not the case on 22.7 on a Mac; it fails with an unknown...

bug

**Bug** I am trying to display a proper error message but the whole traceback is being printed **Python code** `raise Exception("Error sample")` **Javascript code** ``` const messages = await PythonShell.run("script.py",...

bug

**Is your feature request related to a problem? Please describe.** Support for `pyenv-win`. [pyenv-win](https://github.com/pyenv-win/pyenv-win) is pyenv for Windows. **Describe the solution you'd like** Add PYENV environmental variable to Python search...

enhancement

Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) to 6.0.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together. Updates `serialize-javascript` from 5.0.1 to 6.0.2 Release notes Sourced from serialize-javascript's releases. v6.0.2 fix:...

dependencies