Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UsageError: Line magic function `%sql` not found

Tags:

python

sqlite

%reload_ext sql
%sql sqlite://

The second line can't be compiled and the report says: UsageError: Line magic function %sql not found. With Python3.8, jupyter notebook.

like image 379
semi-li Avatar asked May 27 '26 23:05

semi-li


1 Answers

The issue was solved for me using conda to install "ipython-sql", NOT using PIP.

conda install -c conda-forge ipython-sql

like image 167
Joseph Idziorek Avatar answered May 30 '26 11:05

Joseph Idziorek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!