Tag Info

New answers tagged


Building off of @M.R.'s idea, it is possible to set up an interactive python shell using StartProcess as opposed to RunProcess, allowing for much more flexible connectivity between Python and Wolfram without as much overhead. In it's simplest form, one can open a connection, interact with it, and close it using the following example: path = ...


This may or may not be useful, but one approach would be to bypass msys.bat (which I think is primarily concerned with setting up the interactive console) and start the shell executable directly: In[1]:= shell = "C:\\MinGW\\msys\\1.0\\bin\\bash.exe"; RunProcess[shell, "StandardOutput", "echo $BASH_VERSION\nexit\n"] Out[2]= "3.1.23(1)-release"

Top 50 recent answers are included