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.

DateRangeSlider error not logged nor shown in CLI

See original GitHub issue

I noticed the following bug: If you have a DateRangeSlider of which max and min are the same date, the browser shows a blank page client side, and the CLI and error loggers don’t show anything unusual.

It took me a while to find the origin of the problem due to the lack of logging.

Conditions hwere this bug was found:

  • Tested on both Windows 10 and Ubuntu 16.04
  • Python 3.6, tornado 4.5.2, bokeh 0.12.15 (on both systems)
  • Firefox (on both systems)

How to reproduce:

last_date = self.df['last modification'].max() 
first_date = self.df['last modification'].min()
if last_date == first_date:
    last_date = first_date + timedelta(days=1)

to these two lines:

last_date = self.df['last modification'].max() 
first_date = last_date

With your CLI, cd into the parent folder and execute bokeh serve softfocus --show --log-level debug

Output: blank page on your browser, no errors/warnings in your CLI Expected output: a working webpage with a frozen DateRangeSlider.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bryevdvcommented, Apr 20, 2018

As an aside, I just checked and Ion range slider still does not support vertical orientations which is a shame. I would switch to it in a heartbeat except for that deficiency. I’m almost to the point of considering it anyway. If people need vertical sliders that could be the custom extension.

0reactions
bryevdvcommented, Apr 20, 2018

@hyamanieu Sorry when you said “same date” I assume you meant same day but different times. If you mean the exact same date, then it would appear the underlying slider library does not support start and end being equal, which is outside our control. As @mattpap says we can try to add better code to disallow that or at least throw better errors. If this is a capability you need, you can consider extending Bokeh with a custom extension for a different slider library. The is an example of wrapping the Ion range slider here, for instance:

https://bokeh.pydata.org/en/latest/docs/user_guide/extensions_gallery/widget.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bokeh DateRangeSlider - python - Stack Overflow
I did some work on the slider, now not raising any errors, but the plot vanishes when I move the slider in any...
Read more >
Daterangeslider not working - Panel - HoloViz Discourse
I am from Pakistan panel widgets.DateRangeSlider not working . Following is the code snap Nauman Ahmad Khan @khannaum 16:30 date range values not...
Read more >
JAMS 7.X User Guide
Configures a Recovery Job to run if the given Job completion does not exceed ... the recurrence is stopped regardless of the value...
Read more >
bokeh Changelog - pyup.io
12578 [component: bokehjs] [BUG] gridplot reset button does not reset all figures ... 7788 [widgets] Daterangeslider error not logged nor shown in cli...
Read more >
bokeh.models.widgets.sliders — Bokeh 2.3.3 Documentation
No uniqueness guarantees or other conditions are enforced on any names that are ... Find the PropertyDescriptor for a Bokeh property on a...
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