From charlesreid1

(Created page with "==What is it Beaker notebook is a cloud-based notebook service that can handle a huge variety of different languages: https://pub.beakernotebook.com/ It is of interest to us...")
 
No edit summary
Line 1: Line 1:
==What is it
=Beaker Notebook=
 
==What is it==


Beaker notebook is a cloud-based notebook service that can handle a huge variety of different languages: https://pub.beakernotebook.com/
Beaker notebook is a cloud-based notebook service that can handle a huge variety of different languages: https://pub.beakernotebook.com/
Line 7: Line 9:
==Finding out about it==  
==Finding out about it==  


Found out about the Beaker notebook at a link talking about various notebook software
Found out about the Beaker notebook at a link [https://www.opendatascience.com/blog/jupyter-zeppelin-beaker-the-rise-of-the-notebooks/ ] talking about various notebook software
* Jupyter Notebook
* Jupyter Notebook
* Apache Zepplin
* Apache Zepplin
Line 23: Line 25:
* Mac: https://github.com/twosigma/beaker-notebook/wiki/Mac-build-and-run
* Mac: https://github.com/twosigma/beaker-notebook/wiki/Mac-build-and-run
* Link to wiki TOC: https://github.com/twosigma/beaker-notebook/wiki
* Link to wiki TOC: https://github.com/twosigma/beaker-notebook/wiki
Can also be installed with Docker: https://github.com/twosigma/beaker-notebook/blob/master/Dockerfile


Beaker Notebook is open source and available on Github: https://github.com/twosigma/beaker-notebook
Beaker Notebook is open source and available on Github: https://github.com/twosigma/beaker-notebook


=Installing and Running Java in Beaker Notebooks=
==Installing and Running Java in Beaker Notebooks==


Here's how to implement Java in a Beaker Notebook: https://lab.beakernotebook.com/publications/7605e53c-fb84-11e5-97c2-4fe48981c03f
Here's how to implement Java in a Beaker Notebook: https://lab.beakernotebook.com/publications/7605e53c-fb84-11e5-97c2-4fe48981c03f
first define some classes
<pre>
package test.beaker;
import java.util.Date;
public class BeakerTest {
  private Date _date;
  public BeakerTest() {
    _date = new Date();
  }
  public String getDateTxt() {
    return _date.toString();
  }
  public String getDateUpperCaseTxt() {
    return _date.toString().toUpperCase();
  }
}
</pre>
then some interactive code
<pre>
package test.beaker;
BeakerTest bt = new BeakerTest();
return bt.getDateTxt();
</pre>
and heck, draw a graph:
<pre>
import java.util.List;
import java.util.ArrayList;
Plot p = new Plot();
p.setTitle("this is a Java plot");
Bars b = new Bars();
List<Number> yList = new ArrayList<Number>();
yList.add(2);
yList.add(5);
yList.add(4);
yList.add(8);
b.setY(yList);
b.setColori(Color.orange);
b.setWidth(0.5);
p.add(b);
 
return p;
</pre>

Revision as of 00:32, 5 September 2016

Beaker Notebook

What is it

Beaker notebook is a cloud-based notebook service that can handle a huge variety of different languages: https://pub.beakernotebook.com/

It is of interest to us because we can run Java code in a notebook - perfect for lecture notes.

Finding out about it

Found out about the Beaker notebook at a link [1] talking about various notebook software

  • Jupyter Notebook
  • Apache Zepplin
  • Beaker Notebook

The thing that caught my eye was that it can run Java.

(Zepplin is IMPLEMENTED in Java, but (incredibly) there was no actual explicit statement that you could run Java code in Zeplin.)

Running

Installing and Running Beaker Notebooks

Building Beaker Notebook requires a few prereqs. Instructions for installing are on the Beaker Notebook wiki:

Can also be installed with Docker: https://github.com/twosigma/beaker-notebook/blob/master/Dockerfile

Beaker Notebook is open source and available on Github: https://github.com/twosigma/beaker-notebook

Installing and Running Java in Beaker Notebooks

Here's how to implement Java in a Beaker Notebook: https://lab.beakernotebook.com/publications/7605e53c-fb84-11e5-97c2-4fe48981c03f

first define some classes

package test.beaker;

import java.util.Date;

public class BeakerTest {
  private Date _date;

  public BeakerTest() {
    _date = new Date();
  }

  public String getDateTxt() {
    return _date.toString();
  }

  public String getDateUpperCaseTxt() {
    return _date.toString().toUpperCase();
  }

}

then some interactive code

package test.beaker;

BeakerTest bt = new BeakerTest();
return bt.getDateTxt();

and heck, draw a graph:

import java.util.List;
import java.util.ArrayList;

Plot p = new Plot();

p.setTitle("this is a Java plot");

Bars b = new Bars();

List<Number> yList = new ArrayList<Number>();
yList.add(2);
yList.add(5);
yList.add(4);
yList.add(8);

b.setY(yList);
b.setColori(Color.orange);
b.setWidth(0.5);

p.add(b);
  
return p;