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.

Incorrect warning for using colors 'black' and 'lightgray'

See original GitHub issue

Please add a code sample or a nbviewer link, copy-pastable if possible

#an example, but throws for anywhere where the color 'black' or 'lightgray' is passed in as an argument
icon_args = {"color": "black"}
f = folium.Icon(**icon_args)

Problem description

It seems that the colors “lightgray” and “black” are merged together in the color_options list (as “lightgrayblack”) but in the argument documentation are correctly listed as “light gray” and “black”. This seems to be throwing an (incorrect) warning to the user:

Screen Shot 2019-06-24 at 7 52 18 AM

From the documentation: Screen Shot 2019-06-24 at 7 52 44 AM

Expected Output

No user warning for using “black” or “lightgray”.

Output of folium.__version__

0.9.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
adnanhemanicommented, Jun 24, 2019

I’ve made the PR. Not sure how else better to update the tests, to be honest. Thanks for the timely response!

0reactions
adnanhemanicommented, Jul 25, 2019

Sure, I’ll try it out when I get some time. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Design Tip: Never Use Black - Ian Storm Taylor
Problem is, we see dark things and assume they are black things. ... so they're not even dark gray, they're colored-dark gray.
Read more >
why are paint bucket colors only shades of gray?
Solved: I'm using paint bucket for fill colors and though I see and choose colors from the spectrum all I am getting is...
Read more >
STOP trying to 'Fix' Gamut Warning! Do THIS instead in ...
Get the Best possible Colors in Print & DON'T let the old Gamut Warning Affect you. Soft Proofing SIMPLIFIED in this Photoshop Tutorial....
Read more >
The Fallacy of Gray - LessWrong
The Sophisticate: “The world isn't black and white. No one does pure good or pure bad. It's all gray. Therefore, no one is...
Read more >
The differences between color-coded Covid-19 warnings ...
It seems intuitive enough: Red means stop, amber means caution, green means go. As Covid-19 levels fluctuate around the world, ...
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