Forums

CPU Usage query

I'm a typical corporate office employee picking up Python, for data analysis / dashboards and the like. I've come across pythonanywhere, and it seems like it'll be able to help me run my scripts in the cloud (not too sure how I can practically use this), and host a Dash app that I have hosted.

When I first installed myvirtualenv, I accidentally installed Python 3.6 (as shared by the tutorial: https://help.pythonanywhere.com/pages/Virtualenvs). I reinstalled the virtual environment, and unfortunately have entered the tarpit.

I understand there's the option to upgrade to paid plans (which I don't mind), but I'm not too sure how much 2,000 seconds will get me, especially since I'm pretty new and am learning through much trial / error.

Any comments/feedback will be much appreciated.

It depends quite a lot on what your code is doing; we use PythonAnywhere as our coding environment to develop PythonAnywhere, and for a typical day of coding for me -- editing stuff, running unit tests and so on -- 2,000 CPU seconds is more than enough. But you mention data analytics, and number-crunching code can be resource-intensive.

In general, a CPU-second is one second of usage of a server-grade CPU at 100% utilization, so if your code when running locally would max out your CPU, it will use about 1 second of your quota per "wall clock" second.

It's worth remembering that going into the tarpit isn't a huge problem necessarily -- your code will continue to run, just more slowly. It's only when you've used up 10x your quota that code might stop running.

Thank you very much giles. I've already purchased a subscription (albeit on another account).

for example every sec you are getting 1 data in somewhere website. , meaning you already have 1CPU sec usage. if you already reach the max of 2K in 5usd upgrade, you will be placed in a tarpit, your code will still run, but slower to connect. but it will still run.