calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
Jack Arrington 2020-09-18T00:57:47.001400Z

I just now discovered that Calva automatically shows example function usages from what you've written in (comment) forms. Very cool 😎:calva:! Nevermind I'm just dumb

Jack Arrington 2020-09-18T13:28:42.011100Z

Ah, I'm totally wrong actually. I have a habit of writing examples for a function in a (comment) form right below the definition, so that someone can come in and play with them if they're trying to figure out the code...Anyway, I had just written out a couple of examples for a function like this, and when I pulled up the quick documentation it showed them, and I thought "Wow, the editor is so smart it's picking up an example use in that (comment) and displaying it automatically!" Did not realize I had just written those exact same 2 examples in my docstring 🤦 TL;DR I am dumb and thought Calva was reading my mind. Nothing to see here, move along...

😄 1
pez 2020-09-18T05:29:10.002500Z

Sounds cool, agreed. But I'm not following. 😀 Can you elaborate?

Charlie Briggs 2020-09-18T08:34:31.003300Z

Morning, is there any way to expand the ... truncating in the Calva REPL output?

Charlie Briggs 2020-09-18T08:36:07.003400Z

I now see there’s max-length in length in the pprint config, but is there a way of turning that off for a one off command?

pez 2020-09-18T08:37:55.004900Z

Unfortunately not. You can toggle pprint with a keyboard shortcut, but I realize that might not be an option...

Charlie Briggs 2020-09-18T08:44:23.005100Z

that’s ok, I’ve just written to a file for now which is probably more sensible anyway. Thanks for the fast reply!

1
Stefan 2020-09-18T09:30:27.007100Z

Is anyone using Calva with live share? We’re doing that quite a bit for the past two weeks, and mostly it works pretty good. Sometimes the repl output buffer is not visible to the person who joins, not sure why or how to fix that. I was wondering if it is possible for the person who joined to evaluate things in a REPL as well, just like the “host”. Is this possible somehow?

pez 2020-09-18T10:26:22.007700Z

I think it's possible. If the host shares the repl port

Stefan 2020-09-18T11:31:07.008300Z

Thanks @pez, Sounds good! I’ll try later today!

pez 2020-09-18T11:35:25.008900Z

It would be super great with a page on http://calva.io about Live Share. Just sayin’ 😃

Stefan 2020-09-18T12:12:04.009100Z

I’ll keep that in mind!

borkdude 2020-09-18T13:32:42.011400Z

what's live share?

pez 2020-09-18T13:38:48.013Z

An extension bundled with VS Code that enables collaboration. You can share VS Code windows and “follow” the host, as if it was happening in your own instance (which, in a way it does). https://visualstudio.microsoft.com/services/live-share/

pez 2020-09-18T13:40:53.014700Z

It’s one of the reasons why it was important to get rid of the old REPL window, because it would have been a lot of work (maybe not fully possible) to make it work with Live Share. Now, @stefan.van.den.oord tells us that the new repl quirks, but hey …

borkdude 2020-09-18T13:54:11.015300Z

I guess you can use rich comment blocks instead of a REPL, or is that the issue?

pez 2020-09-18T13:58:38.018600Z

Calva's inline evaluation display does not broadcast over live share. Rich comment blocks in combination with the repl window is probably the way to use it.But we need to find out why it sometimes doesn't show. Sounds like a live share bug to me, but I think it should be investigated before we can say that is so. Eval-to-comment is also an option.

Stefan 2020-09-18T14:49:49.019500Z

@borkdude When using rich comment blocks on the host, the other party (the “joiner”) can see the output. However, ideally I would want the “joiner” also to be able to evaluate things herself.

borkdude 2020-09-18T14:51:41.019800Z

so the guest can't edit in files either?

borkdude 2020-09-18T14:52:16.020400Z

or does eval-ing things not work? did you try eval-ing using selecting the option from the command palette explicitly?

Stefan 2020-09-23T05:50:04.000300Z

@borkdude I’d be happy to setup a session with you so that you can try it out, just lemme know. (Not today though.)

pez 2020-09-18T15:45:26.023800Z

Guest can edit. And I have evaled as guest in one of my few live share sessions i have joined. It was a long while ago so I don't remember the details, butt I think it involved the host exposing the repl port over live share.

alexdavis 2020-09-18T16:36:27.025400Z

Sometimes I eval something with a ton of data and it completely hangs my repl until I restart the entire process, is there some way to tell calva to stop evaluating?

pez 2020-09-18T16:39:28.025700Z

There's a command for that! 😃

pez 2020-09-18T16:40:22.026100Z

Calva: Interrupt Running Evaluations

pez 2020-09-18T16:41:38.027500Z

But large evaluation results sometimes ”hangs” Calva anyway, so depending on the nature of your hangs, interrupting the evaluation might or might not help.

alexdavis 2020-09-18T16:49:55.028400Z

Thanks! seems to work fine for my use case 🙂 guess I should have checked the commands, for some reason assumed calva was stuck and I needed some vscode level intervention

🤘 1
bringe 2020-09-18T18:22:35.030100Z

A friend and I have played with live share and shared a repl via the port. It worked well. He shares his port and then I can just connect calva to his repl. What I evaluate, he can use too. Pretty cool stuff.