Alex Hall
Alex Hall
Related discussion: https://github.com/gruns/icecream/issues/77#issuecomment-994217945 @gjvnq Why not use the `isnotebook` you put there? IPython is a lot more general than Jupyter notebooks. Another way to detect Jupyter is described here: https://github.com/gruns/icecream/issues/100#issuecomment-896250411...
`ic(obj.__dict__)` should work for most classes, but it will only give your the direct attributes, not the full structure recursively. Off the top of my head, the only library I...
I thought you needed the contents of an object? I don't understand what you're showing here.
Thanks for contributing! IMO it's not worth spending significant time on perfecting 2.7 since it's well past EOL. I haven't looked carefully but it sounds like you've made a significant...
Started to make some suggestions then I realised the `except Exception` is probably dealing with that more elegantly.
> I have been thinking that it might be best not to enable this feature by default, at least in its first release, otherwise it could introduce breaking changes for...
The main problem is that you still need to account for the other parts of the output, and it's quite complicated. There's four pieces: 1. The global `prefix` (`ic| `)...
Same problem is also mentioned in https://github.com/gruns/icecream/issues/52#issuecomment-816225510, clearly this is bothering a lot of people. This seems to essentially be a colorama bug. I don't have Windows to test on...
Finding where `ic` was called from is a very complicated operation, Python doesn't offer it for free. I'm surprised the difference isn't bigger. In fact you call print 100 times...
Try using the `pp` function in [snoop](https://github.com/alexmojaki/snoop).