4 Commits

Author SHA1 Message Date
Massimiliano Ghilardi
c6a172053d added MIME type autodetection to most functions in package 'display'.
new functions in package 'display': Any(), File(), Reader(), WriterTo()
2018-10-01 21:16:39 +02:00
Massimiliano Ghilardi
568d6d7e60 automatically display image.Image or display.Data returned by REPL only if it's the only non-nil result 2018-06-10 23:09:07 +02:00
Massimiliano Ghilardi
bfa25f88c4 As per @SpencerPark recommendation, split the 'func Display(data DisplayData) error' function that sends multimedia to Jupyter for displaying
from the various factory functions 'func display.*(...) DisplayData' that create and return DisplayData values.
Also remove the global variable globalReceipt and use a closure instead.
2018-06-04 21:55:35 +02:00
Massimiliano Ghilardi
c75e6bc5ee simplify @SpencerPark branch https://github.com/SpencerPark/gophernotes/tree/mime-rendering to implement rendering of HTML, JSON, JPEG, PNG, SVG, LaTeX...
New functions: display.PNG([]byte), display.JPEG([]byte), display.HTML(string), display.SVG(string) ...
2018-06-02 17:55:12 +02:00