Just set up an IPython Notebook on Ubuntu 16.04 but I can't use %load_ext sql.
I get: ImportError: No module named sql
I've tried using pip and pip3 with and without sudo to install ipython-sql. All 4 times it installed without issue but nothing changes on the notebook.
Thanks in advance!
I know it's been a long time, but I faced the same issue, and Thomas' advice solved my problem. Just outlining what I did here.
When I ran
sys.executablein the notebook I saw/usr/bin/python2, while the pip I used to install the package was/usr/local/bin/pip(to find out whatpipyou are using, just dowhich piporsudo which pipif you are installing packages system-wide). So I reinstalledipython-sqlusing the following command, and everything worked out just fine.sudo -H /usr/bin/python2 -m pip install ipython-sqlThis is odd since I always install my packages using
pip. I'm wondering maybe there's something special about the magic functions in Jupyter.