Closed amaurydar closed 7 years ago
I don't see the 2000 char limit: https://pub.beakernotebook.com/#/publications/56c52cc6-b9ec-4188-92e3-d573368a9b21 390 and higher values work fine.
as for displaying strings, i see what you mean. here's a fix but it's kind of a hack (it just recognizes any array of chars at the top level from kdb and converts to java string). what about arrays of strings etc? https://github.com/twosigma/beaker-notebook/compare/spot/3530?expand=1
I am running into a bug when setting a KDB variable as a beaker object and then getting it from KDB:
.bk.s[
foo; til 380]; .bk.gfoo;
works as expected.bk.s[
foo; til 390]; .bk.gfoo;
raises the errorkx.c$KException: unclosed } at 1912
The part that produces the error is only getting. The variable is well set and can be retrieved from another language like python.
Trying to debug, I ran
`$.bk.bc_get["/rest/namespace/get?name=", "foo"]
and
count .bk.bc_get["/rest/namespace/get?name=", "foo"]
2000
It seems that for some reason the response from the HTTP GET is cut after 2000 characters.
As a side problem, the way beaker displays q strings is a bit annoying. Q strings are just character arrays and beaker displays them as such :
Casting them as symbols forces beaker to display them in a more readable way, but it would be more convenient if by default beaker could print strings like in a q console.
Thanks for your help!