livebook-dev / kino

Client-driven interactive widgets for Livebook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Message in `Kino.Process.seq_trace`

mariari opened this issue · comments

It would be nice to be able to supply a function to Kino.Process.seq_trace, that can help augment the naming process.

For the code I work on, I see a lot of CAST: tuple, making the use of the utility of seq_trace limited.

This can be solved in a few ways:

  1. Letting users write custom pattern matches for the kinds of messages they experience (much like how label_from_message already matches certain patterns).
  2. Letting users supply their own custom label_from_message function to completely override the process.

I might try my hand at 1. and contribute upstream if the idea works out.

A custom label for messages function would be welcome indeed. Please do submit a PR :)

With #411 being integrated, I'd say this is a completed issue.