Transfer the output controlled by widgets from one cell to another

Hello,
here is a piece of my code which I run in Jupyter Notebook. It simply calculates the values of sig , draws it and then updates them via IntSlider widgets when parameters p , L , and m are changed.

fig, ax = plt.subplots(1,figsize = (10,4))
plt.suptitle('Input signal')

def update_values(p, m, L):

    ax.clear()

    num_counts = np.arange(0,m)
    x = np.linspace(-len_x // 2, len_x // 2, m)
    delta_x = len_x / m

    sig = L*(0.8 * (np.e ** (-x ** p)
    + np.e ** (-(x + 3.5) ** p)
    + np.e ** (-(x - 3.5) ** p)
    + np.e ** (-(x + 7) ** p)
    + np.e ** (-(x - 7) ** p))) + 0.2

    ax.plot(num_counts,sig, '.', markersize=2)
    ax.set_xlabel('i')
    ax.set_ylabel('L, quantization')
    plt.show()
    return sig

p = widgets.IntSlider(value=2,min=2,max=40,step=2,description='p')
m = widgets.IntSlider(value=128,min=128,max=4096,step=128,description='m')
L = widgets.IntSlider(value=256,min=256,max=4096,step=256,description='L')

widgets.interactive(update_values, p=p, m=m, L=L)

What should I do to transfer the values of sig to another cell of Jupyter Notebook so that if I change the widgets’ parameters p , m , L (and therefore sig ), I’ll be able to operate with the updated version of sig in another cell?

Cross-posted here.