首页 > 解决方案 > Trying to disable Variables In-line with Jupyter Code in PyCharm

问题描述

I'd like to be able to disable the variable info being displayed in-line with the code. See the following code and attached screenshot... As you can see, the "In-Line Values" is unchecked, but I still get df2: {DataFrame: (3,3)} at the end. I'm running this as a .ipynb inside of PyCharm.

    #%% md
    ### This code illustrates my problems with in-line values
    
    #%%
    import pandas as pd
    import numpy as np
    
    #%%
    df2 = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
                       columns=['a', 'b', 'c'])
    df2

In-line Values Even With Box Unchecked

标签: pythonjupyter-notebookpycharm

解决方案


Jupyter 有一个单独的地方可以更改此设置。要打开设置,请按“Ctrl + Alt + s”。然后,检查:BuildExecutionDeployment | 朱庇特| 在编辑器中显示内联值。


推荐阅读