Skip to content

Clarify pandas and tqdm_notebook notation#474

Closed
watercrossing wants to merge 2 commits intotqdm:masterfrom
watercrossing:tqdm_notebook-apply
Closed

Clarify pandas and tqdm_notebook notation#474
watercrossing wants to merge 2 commits intotqdm:masterfrom
watercrossing:tqdm_notebook-apply

Conversation

@watercrossing
Copy link
Copy Markdown

In response to #473, I propose clarifying the documentation.
It is not:
tqdm.pandas(tqdm_notebook),
but
tqdm_notebook().pandas().

In response to tqdm#473, I propose clarifying the documentation.
It is not:
`tqdm.pandas(tqdm_notebook)`, 
but 
`tqdm_notebook().pandas()`.
@codecov-io
Copy link
Copy Markdown

codecov-io commented Oct 29, 2017

Codecov Report

Merging #474 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #474   +/-   ##
=======================================
  Coverage   99.52%   99.52%           
=======================================
  Files           7        7           
  Lines         629      629           
  Branches      120      120           
=======================================
  Hits          626      626           
  Misses          1        1           
  Partials        2        2

@casperdcl casperdcl added to-review 🔍 Awaiting final confirmation submodule ⊂ Periphery/subclasses submodule-notebook 📓 Much web such IDE labels Apr 3, 2018
Copy link
Copy Markdown
Contributor

@chengs chengs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is a pandas issue, I am here. Looks good to me.

@chengs
Copy link
Copy Markdown
Contributor

chengs commented Apr 21, 2018

@casperdcl any update?

@casperdcl casperdcl added this to the v5.0.0 milestone Apr 30, 2018
@kotoroshinoto
Copy link
Copy Markdown

is there any way to get pandas registered with tqdm without it immediately drawing an unused bar?

@chengs
Copy link
Copy Markdown
Contributor

chengs commented Jun 2, 2018

I think there is not an elegant way to do it...

@casperdcl
Copy link
Copy Markdown
Member

I think this PR is a bit wrong. It should be tqdm.tqdm.pandas(), not tqdm.tqdm().pandas()

@chengs
Copy link
Copy Markdown
Contributor

chengs commented Jun 3, 2018

@casperdcl eh, you're right about tqdm, while for tqdm_notebook, must be called as a function, like tqdm.tqdm_notebook().pandas(), otherwise it will be an error reported.

@casperdcl
Copy link
Copy Markdown
Member

casperdcl commented Jun 3, 2018

ah mentioned in #419 (and #177 -> #192) you need

from tqdm._tqdm_notebook import tqdm_notebook

tqdm_notebook.pandas(...)

This will hopefully change soon to:

# force notebook: from tqdm.notebook import tqdm
# or auto-detect notebook/CLI
from tqdm.autonotebook import tqdm

tqdm.pandas()

Maybe I won't wait for v5 to do this.

casperdcl added a commit that referenced this pull request Jun 3, 2018
- adds documentation and `pandas()` example (#474)
- closes #443
@casperdcl
Copy link
Copy Markdown
Member

closed by 97a9393

@casperdcl casperdcl closed this Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

submodule ⊂ Periphery/subclasses submodule-notebook 📓 Much web such IDE to-review 🔍 Awaiting final confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants