Sublime Hax: Setting System iPython to SublimeREPL

If you haven’t setup Sublime REPL or hacked it to use your system version of Python, please read my blog post on it.

I been fiddling with the Python console in Sublime for some time but everyone in the data science community uses iPython as it has some additional features and syntax highlighting (not too important since Sublime already does it for me)

Anywho its really easy to set iPython on Sublime REPL

1. Install iPython

I didn’t have a system version of iPython so I need to download it.
In your terminal type
pip install "ipython[notebook]"

This will install iPython and all of its dependencies.

2. Open up the SublimeREPL settings JSON
Screen Shot 2015-03-25 at 11.09.04 AM

Screen Shot 2015-03-25 at 11.13.38 AM

Screen Shot 2015-04-10 at 2.45.14 PM

Line 70 you want to type within the brackets [ ]
"/usr/local/bin/python", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"
This is assuming that your Python is installed at that location.

If you don’t know for sure, type into the terminal which python and it will tell you.

Go DatSci go!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s