Created
January 13, 2018 04:07
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%script groovy -e "new GroovyShell().evaluate(System.in.text)" | |
def hello = { | |
println("hello $it") | |
} | |
hello('groovy') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very useful. Thank you