-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Scrolling when text draw in Jupyter output #1403
Conversation
How about both this and #1400 with the option to select via |
I have no problem. I'm honestly fine with whatever you think is the best for the Jupyter users. Maybe this can be activated with |
The |
Currently? I could not find any reference to |
It's in there, it's called |
Also, I agree with @nonhermitian I don't think this is an alternative to #1400 it feels complementary to setting a fixed default for jupyter. |
so.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with this as is. It is opt-in now that #1400 merged if you want a horizontally scrolling text visualization in jupyter you have to set the line_length to a large number or -1. Otherwise we'll line wrap by default at 80chars in jupyter.
This PR is an alternative solution to PR #1400.
When the circuit is draw in Jupyter, the output is wrapped in a
![2018-12-03 12 21 46](https://user-images.githubusercontent.com/766693/49395738-54899500-f705-11e8-8d54-ec5169d09bec.gif)
<pre style="word-wrap: normal;white-space: pre;line-height: 15px;">
, meaning that horizontal scrolling is allowed if needed. It looks like this: