cocalc icon indicating copy to clipboard operation
cocalc copied to clipboard

whiteboard feature idea: expose the underlying data that defines the whiteboard in an api that code can use

Open williamstein opened this issue 6 months ago • 1 comments

The whiteboard itself is just a list of json objects with a pretty simple format explaining their properties (color, text, location, etc.). It would be interesting to make this visible as a library to the python (etc.) code that you run in the whiteboard. That would make it possible to create arbitrary whiteboard elements -- lines, notes, more code, pages, icons, text, etc., -- dynamically, as the result of running code. Since the whiteboard also supports ipywidgets, this could be an interesting and compelling "canvas" for certain types of applications.

The api should also include ability to move focus to any element of the whiteboard (defined by its hash).

williamstein avatar Oct 07 '25 21:10 williamstein

One could do a quick proof of concept of this by editing the .board file. It would be very slow, but would give a flavor of how this could work...

williamstein avatar Oct 07 '25 21:10 williamstein