The Wayback Machine - https://web.archive.org/web/20201123082637/https://github.com/cool-RR/PySnooper/issues/143
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

feature request: colored scheme in Jupyter-Notebook/terminal #143

Open
titi2338432 opened this issue Jul 21, 2019 · 1 comment
Open

feature request: colored scheme in Jupyter-Notebook/terminal #143

titi2338432 opened this issue Jul 21, 2019 · 1 comment

Comments

@titi2338432
Copy link

@titi2338432 titi2338432 commented Jul 21, 2019

image

the above is a usually appeared screen-shot in jupyter notebook, if colored in columns, it would be really helpful to distinguish time/line number/code/variables parts.

@alexmojaki
Copy link
Collaborator

@alexmojaki alexmojaki commented Jul 21, 2019

This depends on #1 being solved first. Notebooks support coloring via ASCII escape codes so the same code should pretty much work, although getting the colors to look good may take extra work.

I recommend you try the alternative library snoop. It has output coloring and special Jupyter notebook support. Also in my opinion the output is also easier to read even without coloring (if you don't agree, you can discuss the layout here). Here is an example:

Screen Shot 2019-07-21 at 21 10 57

Admittedly it doesn't look as good as it does in the terminal, I've opened alexmojaki/snoop#8 which has some workarounds and where we can brainstorm how to tackle this.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.