ipython-sql · PyPI
pypi.org › project › ipython-sqlMay 02, 2020 · Ordinary IPython assignment works for single-line %sql queries: In [ 18 ]: works = % sql SELECT title , year FROM work 43 rows affected . The << operator captures query results in a local variable, and can be used in multi-line %%sql :
ipython-sql · PyPI
https://pypi.org/project/ipython-sql02.05.2020 · Ordinary IPython assignment works for single-line %sql queries: In [ 18 ]: works = % sql SELECT title , year FROM work 43 rows affected . The << operator captures query results in a local variable, and can be used in multi-line %%sql :
How to Test IPython Magic • Peter Baumgartner
pmbaumgartner.github.io › blog › testing-ipython-magicsFeb 16, 2018 · Third, we use the run_line_magic() method on the ip object to run our line magic. This method takes two arguments: the name of the magic function and the remaining of the arguments for that magic. If you were in an ipython shell, this is the equivalent of running %{magic name} {magic arguments}. Note: We can also load in your extension by running ip.run_line_magic('load_ext', 'excelify') instead of using the magic() method. Now that we’ve put all those parts together, we can use these ...