Skip to content

Fixed interactive usage of kinit() in ipython kernels (jupyter)

Duncan Macleod requested to merge github/fork/duncanmmacleod/kinit-jupyter into develop

This PR fixes an a problem using gwpy.io.kerberos.kinit in jupyter notebooks (ipython kernels in general) when the sys.stdout.isatty() returns False, to the function would refuse to attempt an interactive prompt.

The solution here is to manually look up existence of the __IPYTHON__ special variable, and use that to override the result of isatty().

Merge request reports