Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spark Cell magic not found

I have python2 env. on windows 10 with jupyter notebook.

after following instructions in this tutorial I managed to install spark on windows 10: https://medium.com/@GalarnykMichael/install-spark-on-windows-pyspark-4498a5d8d66c

but when I try to run cell magic for SQL I get the following error :

ERROR:root:Cell magic %%sql not found.

when I used %lsmagic I could not find sql cell magic among them.

also I noticed there was no option for pyspark kernel when starting new notebook in Jupyter.

like image 863
eng_salas Avatar asked Jan 25 '26 15:01

eng_salas


1 Answers

Are you trying to use SQL or Spark-SQL? I've used iPython-SQL which was great, and there's also SparkMagic which sounds like what you're looking for. Try installing SparkMagic, which does use %%sql magic.

like image 50
TheDetective Avatar answered Jan 27 '26 06:01

TheDetective



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!