#!/usr/bin/env python # coding: utf-8 # # Groovy Magic for Python Kernel # # This experimental feature is just a beginning of system of magics for polyglot programming. # See [#6477](https://github.com/twosigma/beakerx/issues/6477) # and [#6279](https://github.com/twosigma/beakerx/issues/6279). # In[ ]: get_ipython().run_cell_magic('groovy', '', 'println("stdout works")\nf = {it + " work"}\nf("results")\n') # In[ ]: get_ipython().run_cell_magic('groovy', '', 'new Plot(title:"plots work", initHeight: 200)\n') # In[ ]: get_ipython().run_cell_magic('groovy', '', '[a:"tables", b:"work"]\n') # In[ ]: get_ipython().run_cell_magic('groovy', '', '"errors work"/1\n') # In[ ]: get_ipython().run_cell_magic('groovy', '', 'HTML("

HTML works

")\n')