Putting .SetFilter() on a futures contract makes zero difference compared to just commenting the line. I've noticed this behavior with quantconnect jupyter notebook, during backtesting, and during futures course.

What I also found very interesting was that quantconnect didn't let me pass first and second task on futures course, where the problem was contract filtering, even after applying hints and even copying their solution. I've got this error: Looks like you didn't set the expiry filter for contracts expiring within 90 days...

It looks like the SetFilter method stopped working for quantconnect at some point in the past. Putting there numbers self.future.SetFilter(0, 10) , or timedelta self.future.SetFilter(timedelta(0), timedelta(10)) or lambda functions also does not work. 

Am I misunderstanding something or is it a bug?

I'm attaching screenshot from my jupyter notebook showing that filtering didn't work (I get contracts outside my filter)

185759_1645842409.jpg