How to preview variables in SciView after script run

Lets say I have a following script:

dataset = pd.read_csv('Data.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, 3].values

When I place a breakpoint at the end of the script I can see the content of the arrays in the SciView -> Data

However, if the script is finished then it's impossible to view Data and only plots are shown.
Is it possible to view variables after script is run? To my knowledge it works that way in Spyder.


1 comment
Comment actions Permalink

in your function use:

global X
X = dataset.iloc[:, :-1].values
in the run window the var will be shown click on view as array and it will show the var in sciView data 

then you will find the variable X is 


Please sign in to leave a comment.