Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL iPython Magic Extension won't load

Just installed the iPython-SQL extenson, but when I run

%load_ext sql

I get an error "The sql module is not an IPython extension." I installed it via pip by

pip install ipython-sql

and when that didn't seem to work, even by downloading the file from Github and executing the code. Searching "The sql module is not an IPython extension." itself yielded 0 results in Google, so I am a little lost on what I might be doing wrong.

I am running OSX El Capitan (with SIS disabled), and my Python/iPython version is as below:

Python 2.7.10 |Anaconda 2.4.0 (x86_64)| (default, Oct 19 2015, 18:31:17) 
[GCC 4.2.1 (Apple Inc. build 5577)]
like image 651
user2762934 Avatar asked Jan 23 '16 18:01

user2762934


1 Answers

Since you're using Anaconda's Python, make sure you install with the associated package manager conda:

conda install -c conda-forge ipython-sql=0.3.6

Source: https://anaconda.org/conda-forge/ipython-sql

like image 109
haudarren Avatar answered Sep 21 '22 13:09

haudarren