MIME Outputs

You can put math and HTML into notebooks directly with markdown cells. BeakerX also has an API for generation and display of multimedia content.

In [ ]:
Latex('$\\alpha^2 + \\eta$')
In [ ]:
HTML('<h1>Hello, world!</h1>')
In [ ]:
new MIMEContainer('text/html', '<h1> Hello World!</h1>')
In [ ]:
new MIMEContainer(MIMEContainer.MIME.TEXT_HTML, '<h1> Hello World!</h1>')
In [ ]:
new MIMEContainer('text/latex', '$\\alpha^2 + \\eta$')
In [ ]:
FileLinks("../groovy")
In [ ]:
FileLink("PlotFeatures.ipynb")
In [ ]:
Markdown("It's **very** easy to do **bold** and *italics*:")
In [ ]:
Math('F(k) = \\int_{-\\infty}^{\\infty} f(x) e^{2\\pi i k} dx')
In [ ]:
IFrame('http://jupyter.org/', '100%', 400)
In [ ]:
ScribdDocument("71048089", '100%', 400)
In [ ]:
VimeoVideo("139304565",400,300)
In [ ]:
YoutubeVideo("gSVvxOchT8Y")
In [ ]:
Video('https://archive.org/download/Sita_Sings_the_Blues/Sita_Sings_the_Blues_small.mp4')
In [ ]:
SVG("https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/car.svg")
In [ ]:
SVG("../resources/img/atom.svg")
In [ ]:
Image("https://doggydollars.com/wp-content/uploads/2016/02/DoggyDollars-Retriever-300x300.jpg")
In [ ]:
Image("../resources/img/widgetArch.png")
In [ ]:
import java.io.File;
import com.google.common.io.ByteStreams;
import com.google.common.io.Files;

def imgFile = new File("../resources/img/widgetArch.png");
def bytes = Files.toByteArray(imgFile);
Image(bytes)
In [ ]: