Skip to content

magic tqdm #443

@KOLANICH

Description

@KOLANICH
from isNotebook import isNotebook
from tqdm import *

"""Magic calling needed tqdm depending on environment"""

if isNotebook():
	mtqdm=tqdm_notebook
else:
	mtqdm=tqdm

where isNotebook is according to https://stackoverflow.com/questions/15411967/how-can-i-check-if-code-is-executed-in-the-ipython-notebook/39662359#39662359

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions