The simplest Python construct does not work ?

38 views
Skip to first unread message

Vladimir Zaitsev - Ukraine

unread,
Apr 15, 2020, 5:52:09 PM4/15/20
to spyder
I work in Spyder 4 and Windows 7.

 Faced a strange situation. 
The first design works, the second does not. (See photo screen)
 I can not find an explanation.

Is this a Spyder or Python issue?
Image 1.jpg
Image 2.jpg

bcolsen

unread,
Apr 15, 2020, 6:22:57 PM4/15/20
to spyder
Unfortunately Spyder doesn't support running code blocks in "run selection or current line (F9)"

If you run the whole file with F5 the code should run fine. if you want to run it line by line you can try the debugger.

Владимир Федорович Зайцев

unread,
Apr 16, 2020, 2:22:14 PM4/16/20
to spyd...@googlegroups.com
Thank you very much ! Designed the design as a block   ( #%%  .....  #%%   ) and it worke !

Vladimir Zaitsev.
    Kyiv, Ukraine.

чт, 16 квіт. 2020 о 01:22 bcolsen <bco...@gmail.com> пише:
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/35b38785-296a-4b8f-8e15-99949860f004%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages