Overflow Error: Gradient descent

OverflowError Traceback (most recent call last)
Cell In[44], line 1
----> 1 plt_divergence(p_hist, J_hist, x_train, y_train)
2 plt.show()

File ~\OneDrive\Desktop\Jupyter\lab_ml\lab_utils_uni.py:305, in plt_divergence(p_hist, J_hist, x_train, y_train)
303 for i in range(len(w_array)):
304 tmp_w = w_array[i]
→ 305 cost[i] = compute_cost(x_train, y_train, tmp_w, fix_b)
307 ax.plot(w_array, cost)
308 ax.plot(x,v, c=dlmagenta)

OverflowError: Python int too large to convert to C long

How to sort this error please help, I have tried typing code in another jupyter notebook on my pc and it showed this error while in lab it didn’t.

Well I found the answer on another query so no need to reply.