mandeep / sublime-text-conda

Work with conda environments in Sublime Text 3
BSD 3-Clause "New" or "Revised" License
26 stars 10 forks source link

Add REPL function #27

Closed titus-ong closed 4 years ago

titus-ong commented 4 years ago

SublimeREPL unfortunately doesn't work with Conda environments in a simple manner - you'd have to create a new build or constantly change the interpreter for different environments. I added an "Open REPL" command (mostly taken from stackoverflow and edited to fit the Conda context) - the command uses the interpreter of the active environment and opens a REPL window for the currently opened file.

It's quite simple but I think it'll be useful. Ideally, I would like the REPL to be reusable i.e. if you run the command repeatedly for the same environment, the same REPL window is updated, but currently a new window is opened each time. It seemed that the way SublimeREPL achieved that was in a rather complicated way though, so I'll see if I can implement that in the future.

mandeep commented 4 years ago

Thanks for the PR! I will test it this weekend and let you know how it goes.

titus-ong commented 4 years ago

Hey @mandeep, was wondering if there were any issues you faced for this and the other PR?

mandeep commented 4 years ago

@titus-ong I haven't had a chance to review the PRs yet. Hopefully I can get to them today.

mandeep commented 4 years ago

@titus-ong thanks for your contribution. I pushed a view small changes to your branch that should fix some issues. Great work!

titus-ong commented 4 years ago

Thanks for the changes, wasn't aware of that.