Alexis Toumi

Results 26 comments of Alexis Toumi

I thought I had seen some code for drawing these frames, is it in another PR? Would be nice to add a picture to the docs.

On a more high-level point of view, I feel like `Frame` is just the same thing as `Bubble` but with multiple arguments. Wouldn't it be easier to refactor `Bubble` to...

This one could be closed after https://github.com/discopy/discopy/pull/279 is merged, but perhaps you also want to keep this horizontal drawing for frames? Could be nice to have the option.

Here's how frames look like with the new PR: ![](https://raw.githubusercontent.com/discopy/discopy/24f43a33e39deb0bd24ccf945498e5ea6e54ba5f/docs/_static/monoidal/bubble-multiple-args.png) Closing this one

Yes of course! e.g. ``` >>> b = Bubble(f, g, h >> h[::-1], dom=x, cod=y @ y, drawing_name="bubble") >>> b.draw(path='docs/_static/monoidal/bubble-multiple-args.png') ``` ![bubble-multiple-args](https://github.com/discopy/discopy/assets/6673255/3eab98ef-088f-46ef-9ec0-5c33fda1ce04)

Copying your code snippet and comment from the previous discussion: ```python def from_yaml(data: yaml.Node) -> Layer: """ Convert a Python object to a representation node. """ match data: case ScalarNode(value=value):...