It would be useful to launch the program from something other than Pycharm to see what happens. Try running from IDLE or from a terminal.
As for the rate statement, here is what is stated in the installation instructions at
vpython.org:
When running from a terminal, if the program does not end with a loop
containing a rate() statement, you need to add "while True: rate(30)"
to the end of the program. This is not necessary when launching from
environments such as Jupyter notebook, IDLE, or Spyder.
Bruce