Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter in Pycharm - dataframe is not showing when dataframe is too wide, no horizontal scroll option appears

When I output a dataframe from a cell using jupyter notebook in Pycharm it won't display unless the width of the dataframe fits in the window. Hence, in cases where the width is wider than the window width, only a white line is produced, while I was expecting part of the dataframe as well as a horizontal scrollbar to show. Running the following:

import pandas as pd
import numpy as np
import string

multiplier = 2
col = [x for x in string.ascii_lowercase] * multiplier 
df = pd.DataFrame(columns=col)
pd.set_option('display.max_columns', None)
df.head()

produces: enter image description here

But when the dataframe becomes too wide (multiplier=4), I get:

enter image description here

As mentioned before, I was hoping a horizontal scrollbar would show as it does conventionally. Does anyone have an idea why it's not working?

like image 506
Leedoe Avatar asked Aug 13 '17 13:08

Leedoe


1 Answers

It seems that JetBrains are aware of the issue and will hopefully address it soon.

You can track the development for updates via their PyCharm issue tracker:

https://youtrack.jetbrains.com/issue/PY-25931

like image 118
Leedoe Avatar answered Sep 30 '22 05:09

Leedoe