vscode interactive window with turtle module
I try to use the interactive window in vscode to run a very basic turtle program. For example draw a single line: import turtle as ttl ttl.shape('turtle') ttl.speed(0) # draw a line ttl.forward(200) ttl.mainloop() print('done') I exit gracefully (get the 'done' at the end). When i try to run a second time in interactive mode i get an error. Terminator Traceback (most recent call last) c:\tests\test_stackoverflow.py in <cell line: 6>() 24 # %% 25 26 # a 2d graphics module 27 import turtle as ttl ----> 30 ttl.shape('turtle') 31 ttl.speed(0) 33 # draw a line File <string>:5, in shape(name) Termin
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.