You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is most likely a result of using auto mode of tqdm progressbar, which seems to be unable to tell whether it is in a notebook or ipython console. It would be nice to have some option to control this behavior (progressbar='text' maybe?) as now everyone who works in ipython/Spyder will likely have no progressbar, which for long running tasks is a bit inconvenient.
This sounds more like an upstream bug with tqdm. Can you look into fixing it there (if it's not already fixed; try using tqdm locally as IIRC we prefer an installed system version when available and new enough)?
did github automatically self-assigned me? weird, I just clicked "submit". Anyway - I can do it.
@larsoner
Unfortunatelly from what I read on multiple occasions it is not possible to distinguish whether the code is running from notebook or ipython (or Spyder). :(
Perhaps they should support magic %tqdm text for example to set within a given session which auto backend will be selected. Might be worth proposing and implementing that at their end. If they reject it, we can add some MNE config value that would triage the class used, but it makes more sense for them to implement it if they're up for it.
@larsoner Good idea, I'll suggest that there. Although the response I imagine might be "just use tqdm.tqdm instead of auto or tqdm.notebook", but I'll try. :)
Although the response I imagine might be "just use tqdm.tqdm instead of auto or tqdm.notebook", but I'll try. :)
Yes if they do this we can support it locally. But they will be forcing every project that uses tqdm to reimplement this same triaging mechanism. So hopefully they see the value in it :)
Activity
larsoner commentedon Aug 5, 2020
This sounds more like an upstream bug with tqdm. Can you look into fixing it there (if it's not already fixed; try using tqdm locally as IIRC we prefer an installed system version when available and new enough)?
mmagnuski commentedon Aug 5, 2020
did github automatically self-assigned me? weird, I just clicked "submit". Anyway - I can do it.
@larsoner
Unfortunatelly from what I read on multiple occasions it is not possible to distinguish whether the code is running from notebook or ipython (or Spyder). :(
larsoner commentedon Aug 5, 2020
Perhaps they should support magic
%tqdm textfor example to set within a given session which auto backend will be selected. Might be worth proposing and implementing that at their end. If they reject it, we can add some MNE config value that would triage the class used, but it makes more sense for them to implement it if they're up for it.mmagnuski commentedon Aug 5, 2020
@larsoner Good idea, I'll suggest that there. Although the response I imagine might be "just use
tqdm.tqdminstead of auto ortqdm.notebook", but I'll try. :)larsoner commentedon Aug 5, 2020
Yes if they do this we can support it locally. But they will be forcing every project that uses
tqdmto reimplement this same triaging mechanism. So hopefully they see the value in it :)larsoner commentedon Aug 24, 2020
@mmagnuski any progress at the
tqdmend? We're recommending Spyder as the IDE in our release, so if they're not fixing it, we should.