Dear Pragha,
I had a deeper look into the code and found why the function (psi.configure) returns an error. I will give you the correction below (and the file to replace in your tvb folder).
See also some comments on your code.
[4]: You don't need to define S, C and dS.
They were only defined for building the phase plane in the tutorial. Here, as you can see you are not using these variables.
[5] Úseless as you are already running the simulation in the previous cell (>> (time, data), = sim.run())
[14] The sampling period is wrong. It is also in ms!
#Create a tvb TimeSeries object
tsr = TimeSeriesRegion(connectivity=con,
data=tavg,
sample_period=sim.monitors[0].period)
tsr.configure()
Also, to identify the error easily, I advise you to separate your code lines in separated cells.
For psi, you need to define it as the TimeSeries above:
#Create and launch the interactive visualiser
psi = ps_int.PowerSpectraInteractive()
psi.time_series=tsr
For the psi.configure(), I have implemented some corrections in the code
line 159: convert the sampling period in second for further use
lines 328 and 352: seg_tpts, starts and nfreq are float and need to be converted in integer
When you then run your notebook, you should obtain a similar figure