Skip to content

Check that stdout exposes isatty#81

Merged
jph00 merged 1 commit intoAnswerDotAI:masterfrom
scw:check-for-isatty
Feb 15, 2022
Merged

Check that stdout exposes isatty#81
jph00 merged 1 commit intoAnswerDotAI:masterfrom
scw:check-for-isatty

Conversation

@scw
Copy link
Copy Markdown
Contributor

@scw scw commented Apr 23, 2021

In embedded environments and other contexts, the sys.stdout stream may
be a custom implementation, and that implementation may not implement
isatty. Check for its existence before use. We ran into this in the case
of ArcGIS Pro which contains embedded Notebooks and uses fastprogress.

In embedded environments and other contexts, the `sys.stdout` stream may
be a custom implementation, and that implementation may not implement
`isatty`. Check for its existence before use.
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jph00
Copy link
Copy Markdown
Contributor

jph00 commented Feb 15, 2022

Many thanks!

@jph00 jph00 merged commit db044cc into AnswerDotAI:master Feb 15, 2022
@jph00 jph00 added the bug Something isn't working label Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants