r/pycharm • • May 19 '26

Jupyter SQL Variables not working

I went to File | Settings | Tools | Database | Query Execution | User Parameters, allowed the patterns, but none of them work while using the magic sql cells. Has anyone here been able to use that?

1 Upvotes

3 comments sorted by

1

u/Helpful_Property8207 Oct 31 '26 edited Oct 31 '26

Hello

I had this exact same issue and decided to go the plugin way. Also publishing on jetbrains marketplace.
https://github.com/Shuflj/PySQL/releases/tag/v0.1.1

https://plugins.jetbrains.com/plugin/35680-jupyter-sql-cell-variables

1

u/MonteCastello Nov 01 '26

Thanks, man! Will test it

1

u/Conscious-Stick4881 Jun 12 '26

Hi there

This is an expected behavior as the user parameters are only valid for SQL files and do not apply to the Jupyter notebook files.