scala-notebook icon indicating copy to clipboard operation
scala-notebook copied to clipboard

Interactive graphs

Open stucchio opened this issue 10 years ago • 2 comments

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

stucchio avatar Mar 22 '14 13:03 stucchio

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 [email protected] 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.

KenCoder avatar Mar 27 '14 15:03 KenCoder

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/

antonkulaga avatar Mar 27 '14 16:03 antonkulaga