alexmojaki / snoop

A powerful set of Python debugging tools, based on PySnooper
MIT License
1.28k stars 35 forks source link

Output in HTML format? #40

Open guettli opened 3 years ago

guettli commented 3 years ago

Hi,

does snoop support output in HTML format?

I think this would be really cool: Local variables hidden first, and only if you want to see them you can expand them.

alexmojaki commented 3 years ago

It doesn't. It would be cool, but it's not something I'm going to implement myself. If you want to give it a try, take a look at https://github.com/alexmojaki/snoop/blob/master/snoop/formatting.py , it might not be too difficult with the use of HTML <details> and <summary> tags.

Also take a look at the tool mentioned in https://github.com/cool-RR/PySnooper/issues/176#issuecomment-861348509 . I haven't tried it but I expect it should also work with snoop.