I have an issue with vscode and python. I created simple python script which works with python3 interpreter and then run it using python3 test.py, which is fine.
import numpy as np
import matplotlib.pyplot as plt
Ts = 0.01
t = np.arange(-5, 5, Ts)
y = t**2
plt.plot(y)
plt.show()
But when I try to run it using vscode debug I get a segmentation fault(core dumped).
agentdenton@agentdenton-latitude:~/dev/Test/numpy_test$ python3 test.py
Segmentation fault (core dumped)
Which is weird because same code works fine on my VM with same Ubuntu. I wonder if I doing something wrong here or is it bug? I'm using ubuntu 19.04 and latest version of vscode also python 3.7.5. Error happens only if I import some module and execute function from it, with regular python code it works fine. Thank you for your attention and sorry for bad english skills!