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
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
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
43d3181740
add file examples/Display.ipynb and link it in README.md
2018-06-14 22:01:36 +02:00
Massimiliano Ghilardi
d6c102d3b9
Merge branch 'display_image' of https://github.com/cosmos72/gophernotes into cosmos72-display_image
2018-06-14 20:51:22 +02:00
Massimiliano Ghilardi
9e18fedcb8
if the only non-nil result returned by REPL is an image.Image or display.Data, publish it with "execute_result" Jupyter message, not with "display_data"
2018-06-11 01:51:40 +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
Elliott Sales de Andrade
a8e266465c
Switch from nu7hatch/gouuid to satori/go.uuid.
...
The former is unmaintained and does not follow the UUID spec.
2018-06-06 19:18:38 -04: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
be43b70e79
merge @SpencerPark commit 710233fed6
...
From SpencerPark <spinnr95@gmail.com>:
Lock writes to the sockets to fix a bug with interleaved publishes.
2018-06-02 18:50:13 +02:00
Massimiliano Ghilardi
e7a966350e
display images: show as image each expression result that implements Go interface 'image.Image'
2018-04-07 16:34:50 +02:00
SpencerPark
8094aa554b
Refactoring and code cleanup.
...
* Refactor named returns to explicit where possible.
* Add/improve comments relating to the new heartbeat channel and
evaluation semantics.
2017-09-30 01:56:37 -04:00
SpencerPark
8463a09ef7
Publish stdout/stderr as it is written. Capture evaluation panics.
2017-09-24 21:28:21 -04:00
SpencerPark
f75e44fd9f
Remove unused types/methods and clean up the messages interface.
2017-09-12 11:14:31 -04:00
SpencerPark
1d4547ee71
Add 'date' and required 'version' field to the message header
2017-09-12 10:18:28 -04:00
SpencerPark
e287c995dd
Handle errors from publish messages, clean up protocol wrappers, and
...
fix godoc comment formatting.
2017-09-07 20:51:43 -04:00
SpencerPark
825aefddc2
Update messages to the 5.0 spec and encapsulate.
2017-08-30 22:23:35 -04:00
SpencerPark
0e04beadf0
Wrap common message construction patterns to clean up the jupyter
...
communication.
2017-08-30 22:21:47 -04:00
Daniel Whitenack
328216c31c
get v1 compiling and interacting with Jupyter
2017-08-01 17:22:40 -04:00
Daniel Whitenack
e779a2a956
initial commit version 1
2017-07-22 16:49:22 -04:00
Daniel Whitenack
6743fc5e9c
comments, variable names, errors
2016-07-29 16:52:27 -05:00
Daniel Whitenack
3975935338
more error handling
2016-07-29 07:21:46 -05:00
Daniel Whitenack
3ae1ef7113
vendoring, update types and importer
2016-07-29 06:10:43 -05:00
Daniel Whitenack
b296a701a7
modify godeps
2016-01-24 13:51:39 -06:00
Daniel Whitenack
e5d3be507c
Godeps
2016-01-24 00:23:00 -06:00
Daniel Whitenack
7b1ee8b248
refactor // linting
2016-01-24 00:16:23 -06:00
Daniel Whitenack
b7cd9b8bda
refactor, logging
2016-01-23 13:48:33 -06:00
Daniel Whitenack
9b0332c6df
initial commit // starting to modify igo functionality
2016-01-22 19:08:26 -06:00