Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to run scala code in the ipython notebook?

I know there is the script magics in the ipython notebook for running code in other languages. See for example http://nbviewer.ipython.org/url/github.com/ipython/ipython/raw/master/examples/notebooks/Script%20Magics.ipynb.

And I know you can run Scala in script mode. See, for example http://www.scala-lang.org/old/node/166.

But I couldn't figure out if there was a way to get the ipython notebook to run scala code.

like image 950
Joshua Lande Avatar asked Oct 11 '13 15:10

Joshua Lande


2 Answers

Second google answer for "Ipython scala" search yield IScala notebook announce.

like image 137
Matt Avatar answered Sep 19 '22 15:09

Matt


OP has asked about running scala code in the ipython notebook, not if there's an ipython equivalent for scala. he is aware he can run it with magics as any other script.

a better answer, though still not what OP has asked, is a project for running scala in the similar fashion of notebooks in a web page https://github.com/Bridgewater/scala-notebook

like image 20
FoggyDew Avatar answered Sep 18 '22 15:09

FoggyDew