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.

expose colo(u)r for IntProgress/FloatProgress

See original GitHub issue

Problem

  • IntProgress and FloatProgress have a bar_style argument to control colour… yet the option strings it accepts don’t sound like they control colour. Directly defining custom colours is also not documented. This seems an odd design choice (or lack thereof).

Proposed Solutions

  • document the style kwarg, i.e.: style={'bar_color': 'green'}
  • let bar_style accept colours (hex or plaintext, '#00ff00' == 'green' == 'success')
  • potentially rename this option colour (or color to keep Americans happy)
  • or maybe just deprecate bar_style

Additional context

https://github.com/tqdm/tqdm/issues/450#issuecomment-699544451

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jtpiocommented, Feb 17, 2021

Yes, if you think it would be useful for the examples provided in the comments above to be in the documentation.

1reaction
casperdclcommented, Sep 27, 2020

ah srry thought you were a maintainer. Was being lazy. Anyway updated the description.

Read more comments on GitHub >

github_iconTop Results From Across the Web

User Guide — Jupyter Widgets 7.6.3 documentation
Image · Button · Output · Play (Animation) widget · Date picker · Color picker ... Exposed CSS properties · Shorthand CSS properties...
Read more >
Diving Into IPython Widgets - Kaggle
Before you install, you can check if IPython Widgets is already installed on your ... Color Picker: ColorPicker; Progress Bar: IntProgress , FloatProgress...
Read more >
Jupyter Notebooks not displaying progress bars - Stack Overflow
The answer is in this GitHub issue. The key is to ensure that you have the ipywidgets notebook extension enabled using the following...
Read more >
ipywidgets Documentation - Read the Docs
The interact function (ipywidgets.interact) automatically creates user interface (UI) controls for explor- ing code and data interactively.
Read more >
JUPYTER/WIDGETS - GitHub Pages
widget-button-color — Color of the button ... float-progress, base-progress, description-widget, styled-widget, dom-widget, widget, has-traits, comm, ...
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