Search code examples
pycharmscratch-file

How to run Scratch file in PyCharm?


I am working on a project called "banana" and now I wanna run the Scratch file I already wrote, but I can only find the green triangle which would say "run banana" when you hover over it, but no way to run my scratch file?


Solution

  • You can run your scripts by right-clicking, and clicking run. On Windows, you can also press ctrl + alt + F10. (shift + F10 on Ubuntu, or Shift + Control + R on OSX). If that doesn't work, something might be wrong with your python interpreter, make sure it's setup correctly.