Trying to disable Variables In-line with Jupyter Code in PyCharm

Question:

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

Asked By: Ren

||

Answers:

The relevant documentation for PyCharm states how to get rid of this: https://www.jetbrains.com/help/pycharm/examining-suspended-program.html#inline-view

Inline values view is enabled by default. To turn it off, in the Settings/Preferences dialog Ctrl+Alt+S, go to Build, Execution, Deployment | Debugger | Data Views and disable the Show values inline option.

Answered By: Random Davis

Jupyter has a separate place to change this setting. To open settings, press "Ctrl + Alt + s". Then, check under: Build, Execution, Deployment | Jupyter | Show inline values in editor.

Answered By: Ren

It took me ages to find it, because for me it was not in Build, Execution, Deployment but rather in Languages & Frameworks > Jupyter > Show inline values in editor.

PyCharm 2022.3.2 (Professional Edition)

Answered By: Godrebh
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.