Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expand groovy magic to the other languages #7130

Closed
scottdraves opened this issue Apr 7, 2018 · 7 comments
Closed

expand groovy magic to the other languages #7130

scottdraves opened this issue Apr 7, 2018 · 7 comments

Comments

@scottdraves
Copy link
Contributor

in addition to %%groovy we should have %%java, %%scala, etc.

scottdraves pushed a commit that referenced this issue Apr 19, 2018
* #7130 groovy magic epanded to other languages

* #7205 fixed broken comm in python
@dclong
Copy link

dclong commented May 1, 2018

Do we have a %%sql magic?

@scottdraves
Copy link
Contributor Author

Yes in 0.16.0

@dclong
Copy link

dclong commented May 1, 2018

I found a notebook doc/python/KernelMagics.ipynb documenting the use of the %%sql magic in Python. Is it possible to assign the results to a Python variable?

@scottdraves
Copy link
Contributor Author

scottdraves commented May 1, 2018 via email

@dclong
Copy link

dclong commented May 1, 2018

  1. It seems that the magic %classpath is not supported in the Python kernel currently. This limits the use usage of JVM kernels. For example, I cannot get connected to Teradata SQL using the magic %%sql as Jar files from Teradata cannot be included using %classpath.

  2. How can the results of the magic %%sql be accessed in Python?

@scottdraves
Copy link
Contributor Author

  1. It should work, just put it inside, like this:
%%sql
%classpath add jar ....
  1. It's on the agenda, see provide two-way autotranslation #5039

@dclong
Copy link

dclong commented May 2, 2018

I've just verified that 1. works following your example. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants