Commit 936674b
committed
FIX: Don't enable IPython integration if not entering REPL.
IPython can also be used to simply run files; when this is the case we
are not going to be interactive; and we do not want to enable the
eventloop integration. Otherwise someone doing:
$ ipython script.py
Will simply see a window blink, as IPython will exit immediately instead
of showing the window and exit.
I'm not quite sure how to test that are we basically _want_ something to
block forever and wait for user input; so no test added
Closes: ipython/ipython#118371 parent 73e2f56 commit 936674b
1 file changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1553 | 1553 | | |
1554 | 1554 | | |
1555 | 1555 | | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
1556 | 1570 | | |
1557 | 1571 | | |
1558 | 1572 | | |
| |||
1649 | 1663 | | |
1650 | 1664 | | |
1651 | 1665 | | |
| 1666 | + | |
1652 | 1667 | | |
1653 | 1668 | | |
1654 | | - | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
1655 | 1673 | | |
1656 | 1674 | | |
1657 | 1675 | | |
| |||
0 commit comments