scanpy._settings.ScanpyConfig.logfile

scanpy._settings.ScanpyConfig.logfile#

property ScanpyConfig.logfile: TextIO[source]#

The open file to write logs to.

Set it to a Path or str to open a new one. The default None corresponds to sys.stdout in jupyter notebooks and to sys.stderr otherwise.

For backwards compatibility, setting it to '' behaves like setting it to None.