question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Layout Enhancement proposal: Overloading '-' for vertical

See original GitHub issue

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?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
jbednarcommented, Jan 18, 2019

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.

1reaction
jbednarcommented, Dec 5, 2021

Yes, .cols(1) will give you a vertical layout, but what I’m hoping out of / or - is a compositional layout, combining both vertical and horizontal layouts, with an expression like (a+b*c)/d + e*f yielding:

 ____   ___   ________
|    | |   | |        |
|  a | |b*c| |        |
|____| |___| |        |
 __________  |  e*f   |
|          | |        |
|     d    | |        |
|__________| |________|

Right now, you have to use Panel’s Row and Column objects if you want a layout like that, which is fine but not very convenient and shouldn’t be necessary for hv users since hv has its own notion of layouts that don’t require recourse to an external library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Grid Layout and progressive enhancement
A simple example of overriding a floated layout using grid. ... I have used the vertical-align property on my item when in the...
Read more >
The 5-Week Program for Progressive Overload
Progressive overload is the gradual increase of stress during training. This workout principle increases demand for muscle size, strength, and endurance.
Read more >
Overload Factor - an overview
The overload factor approach to design allows the variation of each item of strength (vertical, transverse and longitudinal) to be controlled according to ......
Read more >
Eccentric Overloading Methods for Jumpers: Kettlebell ...
Recent research by Patel (2010) has found that a standing vertical jump was more positively associated with work at the hip vs. work...
Read more >
2009 Edition Chapter 2A. General - MUTCD
04 Roadway geometric design and sign application should be ... does not preclude further improvement by minor changes in the proportion or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found