Massimiliano Ghilardi
7c3ca4e0f5
update vendored gomacro to fix #172
2019-06-01 22:30:37 +02:00
Yasuhiro Matsumoto
94e11a2b83
Fix display
2019-05-18 21:08:10 +09:00
Massimiliano Ghilardi
d50a05f4c6
improve auto-rendering of interpreted types
2019-04-14 15:22:36 +02:00
Massimiliano Ghilardi
a079f39dab
As per @SpencerPark suggestions, try all auto-rendering interfaces
...
instead of stopping after the first successful one.
Adds support for types that implement more than one of HTMLer, JPEGer...
2019-04-13 22:57:40 +02:00
Massimiliano Ghilardi
b7e97ff1e2
pass around *interp.Interp and xreflect.Type and use them to detect
...
if an interpreted type implements one of the rendering interfaces.
2019-04-12 22:13:29 +02:00
Massimiliano Ghilardi
644268658a
use auto-rendering interfaces, as decided in #166
...
TODO: keep []xreflect.Type returned by eval(), to preserve interpreted methods
2019-04-11 22:22:37 +02:00
Massimiliano Ghilardi
44fda23b4b
add the new rendering interfaces (not used yet) decided in #166
2019-04-10 22:31:51 +02:00
Massimiliano Ghilardi
f5d22ffe2c
simplify display functions and types in preparation for interfaces dedicated to rendering - see issue #166
2019-04-10 22:15:44 +02:00
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