There are many editors that can be used to do python programming including spyder and pycharm. Sublime Text 3 with REPL provides the best workflow for a python programmers. SublimeREPL with Sublime Text 3 allows you to send chunks of python code or lines of python code without having to take your hand of your keyboard and interrupt your workflow using keyboard shortcut. This post is a tutorial on how to step up Sublime Text with python on Windows.
Sublime Text 3 is available to be download at the following link: https://www.sublimetext.com/3
Once sublime text 3 is installed, install package control from the following link: https://packagecontrol.io/installation
Launch sublime text 3 and press Ctrl Shift p to open the command palette.
Type Anaconda into the search bar and click it to install it.
Once anaconda is installed open, open sublimerepl.py in C:\Users\<Username>\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL.py
Copy and paste
res["file_path"] = os.path.expanduser('~')
res["win_cmd_encoding"] = "utf8"
and save the file.
Open ipy_repl in C:\Users\<Username>\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\config\Python directory and copy and paste the following code, overwriting the existing content.
Next open command prompt and run the following code:
ipython profile create
c.InteractiveShell.colors = "NoColor"
in the bottom of the file and save it.
def is_alive(self): return self.popen.poll() is None
def is_alive(self): return True
Sublime Text is now properly set up to work with IPython using REPL. You can send code from the python file to the interactive session using ctrl + ,+ l.