I know that this was a long time ago, but I ran into the same problem and Thomas's advice solved my problem. Just stating what I did here.
When I ran sys.executable on a laptop, I saw /usr/bin/python2 , and the pip I used to install the package was /usr/local/bin/pip (to find out that you are using pip , just do which pip or sudo which pip if you install packages throughout the system). So I reinstalled ipython-sql using the following command, and everything ipython-sql out just fine.
sudo -H /usr/bin/python2 -m pip install ipython-sql
This is odd since I always install my packages using pip . I'm wondering, maybe there is something special about magical functions in Jupyter.
source share