UsageError: Line magic function `%sql` not found

Viewed 10196

%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.

2 Answers

To load sql:

%load_ext sql

To connect SqlLite:

%sql sqlite://

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

conda install -c conda-forge ipython-sql

Related