Holoviews: Layout Enhancement proposal: Overloading '-' for vertical

Created on 18 Jan 2019  路  3Comments  路  Source: holoviz/holoviews

I think overloading the minus operator to add elements vertically might be a workable shortcut?

So, instead of doing:

layout = elem1 + elem2
layout.cols(1)

I suggest this as the shortcut for that:

elem1 - elem2

but maybe there are issues with that approach I'm not seeing.
Thoughts?

discussion

Most helpful comment

I've previously proposed e1 / e2 (e1 "over" e2) for that purpose, but I think anything like that is waiting on the Bokeh Layout work that has yet to come to a conclusion.

All 3 comments

I've previously proposed e1 / e2 (e1 "over" e2) for that purpose, but I think anything like that is waiting on the Bokeh Layout work that has yet to come to a conclusion.

what about now? ;)

The Bokeh layout work is long done, but I'm sure @philippjfr or @jlstevens will come up with some new reason why we can't have good things like this. :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mansenfranzen picture mansenfranzen  路  5Comments

hojo0590 picture hojo0590  路  4Comments

claresloggett picture claresloggett  路  5Comments

ahuang11 picture ahuang11  路  3Comments

Forander picture Forander  路  6Comments