Closed siefkenj closed 2 years ago
This option requires that
linked: true
is set (though it would be easy to automatically setlinked: true
if someone specifies alinkKey
. I have no idea why someone wouldn't want that...).
I am strongly in favour of adopting sensible behaviour right away - since it makes no sense to specify a kernel identifier and not link the cells, let's force linking if the key is given!
Thinking about it further - it seems that we have two parameters for the same thing. Perhaps existing linked
can take other values than just boolean and serve as a key? Or will it break the logic of current linked groups? I've actually never used them myself sticking to big interacts in a single cell.
I could extend linked
to accept a string, but I think linkKey
is more descriptive.
Fixes #546
This PR builds off of #550
It adds a
linkKey: string
attribute to the parameters ofmakeSagecell
. All cells created with the samelinkKey
share a kernel. This option requires thatlinked: true
is set (though it would be easy to automatically setlinked: true
if someone specifies alinkKey
. I have no idea why someone wouldn't want that...).An example is below. The divs
.link1
and.link2
are linked to one kernel and the divs.link3
and.link4
are linked to a different kernel. They can all be linked to the same kernel by modifyinglinkKey
.