-
Notifications
You must be signed in to change notification settings - Fork 17
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
IPython cell magic for enabling Treescope in a single cell #5
Comments
Ah, this isn't actually what The It sounds like you'd like to have a cell magic that displays the output with Treescope instead of displaying it with the ordinary IPython pretty-printer? I'm not sure how doable this would be in IPython. I suppose it might be possible to make a cell magic that wraps the final cell output with I think for now it would be easiest to just use |
Thanks for the quick feedback!
Yes, this is what I mean. Sorry, I misunderstood the meaning of
I am not familiar with how IPython works under the hood, but could the treescope visualizer check if the |
I'm not sure, it might be possible but I don't know exactly how that would work. I think if this does get added, it will probably be a different cell magic, not |
I'd like to get the treescope visualizations in notebooks only if I decorate a cell with
%%autovisualize
. However,%%autovisualize
doesn't seem to have any effect. I can only use treescope everywhere (withbasic_interactive_setup()
) or nowhere.I am aware of
treescope.show
, but I'd still like to use%%autovisualize
because it is nicely separated from the code content of the cell.Thank you for sharing this great library!
The text was updated successfully, but these errors were encountered: