I am a new Atom user.
I am trying to set a higher recursion limit by using sys.setrecursionlimit(). Here is my code:
import sys
sys.setrecursionlimit(10**6)
I ran the code line by line and sys was successfully imported. However, the second line returns this error:
Traceback (most recent call last):
File "C:\Users\inval\AppData\Local\Temp\atom_script_tempfiles\2021529-30540-1qngqnd.ejyu", line 4, in <module>
sys.setrecursionlimit(10**6)
NameError: name 'sys' is not defined
I have tried this with other packages like math and it works fine:
import math
print(math.pi/2)
I have also tried the sys code on Jupyter Notebook and Spyder. No issues there.
Any fellow Atom peeps to the rescue?