forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default line length for jupyter (Qiskit#1400)
When running the text circuit drawer in jupyter the default line length was being setting with the get_terminal_size() call. However this was returning the size of the terminal used to launch jupyter, not the cell size. So this could cause issues if your terminal is much smaller or much larger than the cell size. To fix this issue this commit adds a default of 80 characters for the default line length when running in jupyter so it'll always fit in the cell.
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters