I am trying to run an iPython file in an interactive shell in Sublime Text 2. This is my first plugin I've written.
Here's what I have so far:
import sublime, sublime_plugin
class IpydevCommand(sublime_plugin.WindowCommand):
def run(self):
self.window.run_command('repl_open',{"type": "subprocess",
"encoding": "utf8",
"cmd": ["ipython", "-i", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "ipython",
})
self.window.run_command('move_to_group', { "group": 1 })
The issue here is that I don't get an interactive environment after. The view is all messed up. Any ideas how to fix this?
Thanks