Closed cdyellick closed 5 years ago
Thanks. I agree that there should be an option for shell=True. I do want to be careful about adding it though as there may be some unintended consequences especially on Windows.
I had a similar issue and adding "shell"=true
to the build system did not work.
In order for matplotlib to interact with the gui (on macOS), one needs to run it with pythonw
instead of python
when working with environments (e.g. conda). See this link for details.
Hence, I had to modify the commands.py
of sublime-text-conda
to use the right executable.
I think it would be nice to add an option in the sublime-settings for the shell flag and the python executable used for running the script.
Thanks. Unfortunately, I don't have a Windows or macOS box to test with so PRs are greatly appreciated.
Alternatively, in ST3 you can plot using pyplot by:
I'm using sublime-text-conda with miniconda. I'm also using matplotlib and would like my plots to appear when run through the conda build system. However, if I install sublime-text-conda from package control and run something like this:
the plot is not shown and the program never reaches the end. From doing some research, it seems that Conda.sublime.build needs to contain "shell": true for my use case to work.
I was able to install sublime-text-conda form source and make the addition. Everything seems to work as I want now.
I assume there is a reason not to have this as the default behavior, but it would be nice to have it as an option.