ipython-sql icon indicating copy to clipboard operation
ipython-sql copied to clipboard

Variable not being substituted in cell magic with $ or {}

Open cab938 opened this issue 4 years ago • 1 comments

Sometimes the same query passed to the line magic, %sql, won't work in the cell magic, %%sql, specifically when using a variable substitution with a dollar sign $.

MWE show below using publicly available dataset. Tested with ipython-sql 0.4.0

image

This similarly fails with the {} notation:

image

cab938 avatar Nov 16 '20 16:11 cab938

Looks like the same issue I reported in https://github.com/catherinedevlin/ipython-sql/issues/177

duncandewhurst avatar Nov 29 '20 22:11 duncandewhurst