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

时间:2017-08-13 13:59:51

标签: python pycharm scrollbar jupyter-notebook

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?

1 个答案:

答案 0 :(得分:9)

似乎JetBrains已经意识到这个问题,并希望很快能解决这个问题。

您可以通过PyCharm问题跟踪器跟踪更新开发:

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

相关问题