Bridgewater / scala-notebook

Interactive Scala REPL in a browser
Other
741 stars 155 forks source link

Interactive graphs #38

Open stucchio opened 10 years ago

stucchio commented 10 years ago

Sorry for raising an issue for general discussion, but there doesn't seem to be a mailing list.

I have the beginning of a fork of Scala Notebook which provides interactive graphs via Breeze and Breeze-Bokeh. For those unfamiliar, Breeze is a numpy-like library for Scala, while Breeze-Bokeh is a (highly experimental) Scala backend to the BokehJS plotting library.

The goal is to give Scala-Notebook functionality closer to IPython-Notebook.

Currently it's just a proof of concept and the code is kind of ugly, also doesn't do much besides line plots. Is there any interest in integrating such functionality into the official Scala-Notebook project?

Also, can anyone suggest a more modular way of adding this functionality? My fork just adds breeze and breeze-bokeh to the server dependencies and edits core Scala Notebook files to render the Bokeh graphs.

To try it ou clone my fork and click "Run All" in the Welcome notebook.

https://github.com/stucchio/scala-notebook

KenCoder commented 10 years ago

Sorry to have not responded earlier - I haven't had time to checkout the fork but it sounds great.

We don't have a better plug-in architecture, it would be nice to specify libraries for the spawned vm but for now adding it to the server is the right thing.

Ken

On Mar 22, 2014, at 9:53 AM, Chris Stucchio notifications@github.com wrote:

Sorry for raising an issue for general discussion, but there doesn't seem to be a mailing list.

I have the beginning of a fork of Scala Notebook which provides interactive graphs via Breeze and Breeze-Bokeh. For those unfamiliar, Breeze is a numpy-like library for Scala, while Breeze-Bokeh is a (highly experimental) Scala backend to the BokehJS plotting library.

The goal is to give Scala-Notebook functionality closer to IPython-Notebook.

Currently it's just a proof of concept and the code is kind of ugly, also doesn't do much besides line plots. Is there any interest in integrating such functionality into the official Scala-Notebook project?

Also, can anyone suggest a more modular way of adding this functionality? My fork just adds breeze and breeze-bokeh to the server dependencies and edits core Scala Notebook files to render the Bokeh graphs.

To try it ou clone my fork and click "Run All" in the Welcome notebook.

https://github.com/stucchio/scala-notebook

— Reply to this email directly or view it on GitHub.

antonkulaga commented 10 years ago

By the way, have you considered integrating ScalaJS? There are already projects that let edit ScalaJS in the browser like http://www.scala-js-fiddle.com/