Skip to content

Instantly share code, notes, and snippets.

@lakemove
Created January 13, 2018 04:07
Show Gist options
  • Save lakemove/13c75d0bb190bc9bf8f4fc160a8b0c24 to your computer and use it in GitHub Desktop.
Save lakemove/13c75d0bb190bc9bf8f4fc160a8b0c24 to your computer and use it in GitHub Desktop.
run groovy in jupyter/ipython notebook, put it in one cell and ctrl+enter to run
Display the source blob
Display the rendered blob
Raw
%%script groovy -e "new GroovyShell().evaluate(System.in.text)"
def hello = {
println("hello $it")
}
hello('groovy')
@naveedulislam
Copy link

Very useful. Thank you

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