Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] force plain ASCII display of tqdm.autonotebook within a submodule #1035

Closed
DSLituiev opened this issue Sep 14, 2020 · 3 comments · Fixed by #1099
Closed
Assignees
Labels
duplicate 🗐 Seen it before question/docs ‽ Documentation clarification candidate submodule ⊂ Periphery/subclasses
Milestone

Comments

@DSLituiev
Copy link

DSLituiev commented Sep 14, 2020

I am using a module that obviously calls tqdm.autonotebook internally.
Everything is fine untill I re-load a notebook, and then I see this HBox... thing (though I am using :8888/tree / plain Jupyter).

My question or request is: How can one disable the auto-notebook widget mode using a global switch? I.e. something like tqdm.autonotebook.ascii()

System info:

4.43.0 3.7.2 | packaged by conda-forge | (default, Mar 19 2019, 20:46:22) 
[Clang 4.0.1 (tags/RELEASE_401/final)] darwin
@casperdcl
Copy link
Sponsor Member

casperdcl commented Sep 15, 2020

I think this is essentially a duplicate of #937, and the issue is specifically #937 (comment)

@DSLituiev
Copy link
Author

DSLituiev commented Sep 15, 2020 via email

@casperdcl
Copy link
Sponsor Member

casperdcl commented Sep 15, 2020

ah you mean you want to pass in different initialiser arguments to an external module which is using tqdm? That would be #614...

Or in your case you could simply monkey-patch a different class; i.e. before importing the external module:

import tqdm.notebook
tqdm.notebook.tqdm = tqdm.tqdm
import some_external_module_using_notebook

@casperdcl casperdcl self-assigned this Sep 24, 2020
@casperdcl casperdcl added this to the Non-breaking milestone Sep 24, 2020
@casperdcl casperdcl added duplicate 🗐 Seen it before question/docs ‽ Documentation clarification candidate submodule ⊂ Periphery/subclasses labels Sep 24, 2020
@DSLituiev DSLituiev reopened this Nov 9, 2020
casperdcl added a commit that referenced this issue Dec 18, 2020
casperdcl added a commit that referenced this issue Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate 🗐 Seen it before question/docs ‽ Documentation clarification candidate submodule ⊂ Periphery/subclasses
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants