Sublime Forum

How to configure a build system for launching Command Prompt window with interactive IPython

#1

I would like to create a build system for Python code files that when used launches a Windows Command Prompt window in which the Python code file is ran, with the window then remaining open afterwards in interactive mode.

The Sublime build file that I’ve made in an attempt to achieve this looks like this:

{
“cmd”: [“C:/anaconda3/Scripts/ipython.exe”, “-i”, “$file”],
“file_regex”: “^[ ]File "(…?)”, line ([0-9]*)",
“selector”: “source.python”
}

However this doesn’t fully work yet because it does not launch a Windows Command Prompt. Does anyone have an idea what the correct Sublime build file for this would look like?

0 Likes