Backport PR #25039 on branch 0.24.x (BUG: avoid usage in_qtconsole for recent IPython versions)
State: closed

Backport PR #25039: BUG: avoid usage in_qtconsole for recent IPython versions

Labels:

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=h1) Report
> Merging [#25054](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=desc) into [0.24.x](https://codecov.io/gh/pandas-dev/pandas/commit/722bb79ebe20ceabaedf79b0ae22486a15dc7805?src=pr&el=desc) will **decrease** coverage by `0.01%`.
> The diff coverage is `62.5%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25054/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           0.24.x   #25054      +/-   ##
==========================================
- Coverage   92.38%   92.37%   -0.02%     
==========================================
  Files         166      166              
  Lines       52391    52397       +6     
==========================================
  Hits        48400    48400              
- Misses       3991     3997       +6
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.79% <62.5%> (-0.02%)` | :arrow_down: |
| #single | `42.88% <12.5%> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/25054/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `96.82% <62.5%> (-0.11%)` | :arrow_down: |
| [pandas/io/formats/console.py](https://codecov.io/gh/pandas-dev/pandas/pull/25054/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2Zvcm1hdHMvY29uc29sZS5weQ==) | `66.66% <0%> (-5.8%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=footer). Last update [722bb79...b5895ed](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=h1) Report
> Merging [#25054](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=desc) into [0.24.x](https://codecov.io/gh/pandas-dev/pandas/commit/722bb79ebe20ceabaedf79b0ae22486a15dc7805?src=pr&el=desc) will **decrease** coverage by `0.01%`.
> The diff coverage is `62.5%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25054/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           0.24.x   #25054      +/-   ##
==========================================
- Coverage   92.38%   92.37%   -0.02%     
==========================================
  Files         166      166              
  Lines       52391    52397       +6     
==========================================
  Hits        48400    48400              
- Misses       3991     3997       +6
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.79% <62.5%> (-0.02%)` | :arrow_down: |
| #single | `42.88% <12.5%> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/25054/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `96.82% <62.5%> (-0.11%)` | :arrow_down: |
| [pandas/io/formats/console.py](https://codecov.io/gh/pandas-dev/pandas/pull/25054/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2Zvcm1hdHMvY29uc29sZS5weQ==) | `66.66% <0%> (-5.8%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=footer). Last update [722bb79...b5895ed](https://codecov.io/gh/pandas-dev/pandas/pull/25054?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).