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

IPython console: add horizontal scrolling bar #321

Open
Khalilsqu opened this issue Dec 11, 2018 · 1 comment
Open

IPython console: add horizontal scrolling bar #321

Khalilsqu opened this issue Dec 11, 2018 · 1 comment

Comments

@Khalilsqu
Copy link

Khalilsqu commented Dec 11, 2018

This is rather a feature request or an option for those who like it.

I use quite often pandas and sometimes the columns number is too large. Printing the columns and inspecting few first rows is a common practice. Spyder wraps the columns on top of each other and thus the user sometimes find it hard to analyse quickly the data specially if the work is done in lower than 15 inch laptop screen.

spyder

For example in Pycharm the IPython windows shows the full length of all columns. It includes a horizontal scroll bar if the screen size does not allow displaying all columns.

Therefore, is it possible to make an option for the user to show a scrolling bar in Qtconsole which should avoid long texts or Dataframes being wrapped around.

pycharm

vscode!!

vscode

@nitrocalcite
Copy link

I had the same thought! Here's a (hacky) workaround: Target the underlying QTextEdit object. There are two, but the one we want appears to be the 3rd child widget of the main parent.

If you subclass RichJupyterWidget, you can use these commands to toggle the scrollbar:
self.children()[2].setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
and
self.children()[2].setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)

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