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.

Simpler option setting

See original GitHub issue

Is there a fundamental reason why we can’t do:

hv.Points(data)(color='red'})

instead of:

hv.Points(data)(style={'color':"red"})

I.e., does the distinction between the different types of options need to be something the user worries about in practice? Couldn’t holoviews just take a single list of keyword options and apply it to the plot options, style options, and normalization options in order, giving an error if none of those three were to consume it? It’s unlikely that any of the normalization options will ever match the name of one of the other two types, but of course it’s possible that there is a style option that has the same name as one of the plot options. Even so, (a) if that happens it’s going to be very confusing for our users no matter what we do, so it’s presumably good to avoid such name clashes, and (b) as long as we clearly define which option type has priority, people can deal with this issue for the very rare cases when it comes up, without having to use such a wordy and awkward syntax the rest of the time. What do you think?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:21 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
jbednarcommented, Dec 22, 2017

Sure, it’s a very important distinction for us as developers to make and for us to make clear in our docs; users do need to be able to find out which kind it is. But they really don’t need to remember which kind it is to use it. E.g. “height” – why should they care whether it’s a plot or style option? People can use it just fine without consulting any documentation, and it’s just an irritation to have to try one way and then switch it to the other to make it work. There’s no deep reason it is a plot vs. a style option, at least not one evident to users, so why force everyone to remember arbitrary information like that, or to use trial and error to get it to work? It’s a very unfriendly policy; we as developers can keep the two types straight all we want without having to require each and every user to do it every time they use them. Why make users jump through pointless hoops, and make all our examples and applications needlessly more verbose?

0reactions
philippjfrcommented, Feb 20, 2018

Finally implemented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Options Trading Strategies for Beginners
Simpler Trading Team​​ In this beginner's guide to options, we'll review what it means to trade stock options, the types of options available,...
Read more >
Simpler Options Review - Warrior Trading
Simpler Options is an online trading community that was founded by John Carter, author of Mastering The Trade, in 2010 and specializes in...
Read more >
Simpler Trading Review - Bullish Bears
Simpler Options Trading Review: They are a trading group, training & mentorship site that was created by author and trader, John Carter.
Read more >
Simpler Options - Interactive Brokers LLC
Simpler Options has the largest options membership community on the Internet. If you are interested in swing trading stocks you can check out...
Read more >
Essential Options Trading Guide - Investopedia
The simplest options position is a long call (or put) by itself. This position profits if the price of the underlying rises (falls),...
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