Search code examples
pythontimepycharmgoogle-colaboratorydelay

Why does Colaboratory Google take much longer than Pycharm?


Are there any factors in the python code that could justify the delay in generating the results? I plotted a gif of orbits in Pycharm and the result took about 5 seconds. On Google Collaboration it took 3 minutes. Can I do anything to improve this?


Solution

  • enter image description here

    On the top left, click Runtime >> Change runtime type.

    Where it says None in Hardware accelerator, change it to GPU.

    That's if you are doing Machine Learning.