Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output in HTML format? #40

Open
guettli opened this issue Jul 22, 2021 · 1 comment
Open

Output in HTML format? #40

guettli opened this issue Jul 22, 2021 · 1 comment

Comments

@guettli
Copy link

guettli commented Jul 22, 2021

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
Copy link
Owner

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 cool-RR/PySnooper#176 (comment) . I haven't tried it but I expect it should also work with snoop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants