326 Commits

Author SHA1 Message Date
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
Yasuhiro Matsumoto
b50ec88d78 Add me 2019-03-18 16:49:27 +01:00
Yasuhiro Matsumoto
6e62399a56 Fix usage of gonum 2019-03-18 16:49:27 +01:00
Massimiliano Ghilardi
3e31b9592d fix 'for { select { default: }; break }' 2018-12-22 19:32:08 +01:00
Massimiliano Ghilardi
a74a5411a5 fix #154: add symbol Shuffle to package "math/rand" if compiled with Go 1.11+ 2018-12-19 23:29:18 +01:00
Massimiliano Ghilardi
d531e1ad65 fix [gomacro#46](https://github.com/cosmos72/gomacro/issues/46):
error compiling `_ = func(ch chan string) { for { select { case <-ch: default: return } } }`
2018-12-19 22:21:53 +01:00
Yono Mittlefehldt
b8c75f0e54 Updated the documentation to show how to properly run the gophernotes docker image that contains data science packages (#153) 2018-12-13 14:10:58 -05:00
Massimiliano Ghilardi
2c5843f03f fix #151: Odd Interaction between standard packages and some third party packages
Also update imports with most new types, constants and variables declared in Go 1.11 standard library - for example strings.Builder
2018-11-18 16:46:10 +01:00
Massimiliano Ghilardi
b58dd906c4 support mixing tagged and untagged struct fields 2018-10-27 22:05:05 +02:00
Massimiliano Ghilardi
300bfbcc95 update vendored gomacro to fix #148: recognize and process struct field tags 2018-10-26 21:17:24 +02:00
Massimiliano Ghilardi
640617150a fix #149: implement print() and println() more accurately 2018-10-21 00:11:15 +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
1e0b564385
Merge pull request #145 from prattmic/patch-1
Fix README.md typos
2018-10-01 15:15:44 +02:00
Michael Pratt
86a69e5617
Fix README.md typos 2018-09-29 09:42:50 -07:00
Massimiliano Ghilardi
8e2632175b update vendored gomacro to fix https://github.com/cosmos72/gomacro/issues/38 2018-09-15 19:24:30 +02:00
Massimiliano Ghilardi
6679c8a7cf
Merge pull request #141 from AlekSi/patch-1
Add `-u` to all `go get` commands
2018-09-14 14:24:24 +02:00
Sebastien Binet
938b19bbb6 ci: add Go1.11 2018-09-12 13:47:10 +02:00
Alexey Palazhchenko
a63be8cb4a
Add -u to all go get commands
For consistency with Linux instructions.
2018-08-29 08:48:44 +03:00
Spencer Park
df31119eb1
Pin down tornado and ipykernel version to compatible ones. Fixes #137. (#140) 2018-08-18 13:19:19 -04:00
Massimiliano Ghilardi
fb0313dade do not crash on a := [...]int{1,2,3}; len(a) 2018-08-15 23:36:32 +02:00
Massimiliano Ghilardi
274a914384
Merge pull request #138 from kortschak/findingself
gomacro: point to vendored copy
2018-08-13 23:01:41 +02:00
Sebastien Binet
d0abe894e6 all: revert LICENSE to MIT
Fixes #126.
2018-08-11 10:29:05 +02:00
Dan Kortschak
896d481d96 gomacro: point to vendored copy 2018-08-10 08:20:47 +09:30
Massimiliano Ghilardi
0539269237 fix #135 make append() work on named slice types 2018-07-26 23:00:09 +02:00
Massimiliano Ghilardi
0efed2dfcc update GoPkg in vendor/github.com/cosmos72/gomacro/base/util.go to point to vendored copy of gomacro sources 2018-07-16 22:46:50 +02:00
Massimiliano Ghilardi
88d4c00d50 update vendored gomacro to fix #132 (copy of https://github.com/cosmos72/gomacro/issues/32) and https://github.com/cosmos72/gomacro/issues/34 2018-07-16 22:43:13 +02:00
Massimiliano Ghilardi
16d8e2c8c6 fix #131: "continue" statement inside for-range must jump to next iteration, not to function beginning 2018-07-12 22:51:38 +02:00
Spencer Park
43573a69ff
Merge pull request #127 from SpencerPark/fix-dockerfiles
Fix dockerfiles
2018-07-11 16:23:13 -04:00
Massimiliano Ghilardi
6474b0bfba fix #129: function NewV4() in vendored satori/go.uuid may not completely fill
returned uuid with random bytes if underlying crypto/rand.Reader.Read()
returns a short read (i.e. fewer bytes than requested)
2018-07-11 22:04:00 +02:00
SpencerPark
e7cf7fac10 docker: import vecf32 and vecf64 from gorgonia.org 2018-07-09 14:42:38 -04:00
SpencerPark
3d2a679257 vecf32 and vecf64 moved to gorgonia 2018-07-09 14:37:22 -04:00
SpencerPark
82426f8453 Dockerfile python lib is now version 3.6 not 3.5 2018-07-09 13:09:18 -04:00
SpencerPark
d7999e6de8 Pin package repository and versions in Dockerfiles 2018-07-09 12:58:20 -04:00
Sebastien Binet
d3368eec5e doc: add travis badge 2018-07-04 20:56:18 +02:00
Sebastien Binet
249ed1f3f1 travis: add travis-ci 2018-07-04 20:56:18 +02:00
Massimiliano Ghilardi
d76e9fbb20 update vendored gomacro to fix bug [gomacro#28](https://github.com/cosmos72/gomacro/issues/28):
in 'import "path"' without an explicit name, use the name declared inside the package being imported, not paths.FileName(path)
2018-07-02 23:11:39 +02:00
Massimiliano Ghilardi
b632224d66 fix #120: detect methods with pointer receiver as (*sync.WaitGroup).Done when loading methods of named types 2018-06-28 22:44:20 +02:00
Massimiliano Ghilardi
26765843a9 fix #119: make interfaces insensitive to their methods declaration order 2018-06-28 21:32:55 +02:00
Massimiliano Ghilardi
123f3ee895 document Mac OS X requirement of Go 1.10.2+ to import third party libraries at runtime 2018-06-18 22:52:44 +02:00
Massimiliano Ghilardi
c996f2f7bb update examples/Display.ipynb 2018-06-14 22:06:12 +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
7c4271c356 Merge branch 'cosmos72-display_image' 2018-06-14 21:08:31 +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
9a9ff36f0a fix #118: error on fmt.Printf("foo") and calls to other variadic functions
with only one mandatory parameter, invoked with a single argument.
update gomacro to commit 92e2f0cb815a532c9614d7b3d4e5c4b1d1e5154d
2018-06-13 23:10:15 +02:00
Massimiliano Ghilardi
62da084a73 update vendored github.com/mattn/go-runewidth 2018-06-11 23:05:11 +02:00