Hello, I ve written the following code but i need the ROI profile line to be interactive so I can move it around and take intensity measurements from different regions. I am opening the file with spider, anaconda. The image opens within the console and it is not interactive. what am I doing wrong?
import hyperspy.api as hs
import numpy as np
import matplotlib.pyplot as plt
#from scipy.fftpack import fft2, fftshift
import scipy
holo0 = hs.load('Ceta.tif')
hs.plot.plot_images([holo0, holo0.isig[150:250, 200:300]], tight_layout=False)
holo0.plot(saturated_pixels=0.1)
holo0.plot()
lin = hs.roi.Line2DROI(x1=7, y1=15, x2=17, y2=5)
Roi2D = lin.interactive(color='red', signal=holo0)
lin.plot()