Detect ipython console width For ipython I use this to detect console line width : ncols = int(os.getenv('COLUMNS', 80)) 2021-10-27 by myriad python 0