-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update the interactive repl heuristic
The current heuristic doesn't detect ipython as an interactive environment. In addition, forgetting the `-i` during startup is a common UX error. Because `sys.ps1` is documented to imply an interactive environment, we can add it as an additional signal for our heuristic. https://docs.python.org/3/library/sys.html#sys.ps1 A dataset gathered by the user `pyjamas` on StackOverflow implies that this should work reasonably well: https://stackoverflow.com/a/64523765
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters