Forum Discussion

patrick1970's avatar
patrick1970
Copper Contributor
Aug 28, 2024
Solved

Python in Excel - quotas?

Hello.  Newbie here, so apologies if this is a naive query.

 

I'm playing with the new Python in Excel.  While my Python is anything but efficient, I've hit a roadblock with "#BLOCKED - You have exceeded your monthly quota of Python usage."  I can't find anything anywhere to say what this quota is and, more importantly, how to adjust it (happy to pay!).  Thankfully the month-end is only a few days off, but I don't want to build a big Python analysis and then find I can only run it a few times per month.

All thoughts and suggestions welcomed.  Thanks in advance


  • patrick1970 

    The monthly quota on Python usage in Excel is currently a limitation that many users are running into. Microsoft has set a monthly usage limit for Python calculations in Excel.

    When you exceed this limit, you'll encounter the "#BLOCKED - You have exceeded your monthly quota of Python usage." message. The quota likely includes the number of Python function calls or the total computation time. However, Microsoft has not publicly detailed the exact criteria or limits. This quota typically resets at the beginning of each month. If you've hit the limit, you'll need to wait until the next month or optimize your Python usage to avoid hitting the quota.

    There is currently no direct payment option for increasing your quota, as far as I am aware.

    My knowledge on this topic is limited, I only describe what I knew up to now, which does not mean that anything has changed in the meantime.

     

    Links:

    how to check quota for Azure spot VMs vCPU's using Python Azure SDK?

    Getting started - Managing Quota using Azure Python SDK

    I would like create quota increase request through cli is it possible.

     

    My answers are voluntary and without guarantee!

     

    Hope this will help you.

6 Replies

  • fzumstein's avatar
    fzumstein
    Copper Contributor

    I got so frustrated with this and other restrictions of Python in Excel that I launched my own version of Python in Excel that you can install for free from the official Excel add-in store. It's called xlwings Lite. Since it runs locally in the browser runtime that powers modern Office add-ins, there's no need to impose any quota whatsoever.

  • EricAshton's avatar
    EricAshton
    Copper Contributor

    yes I am having this same problem. I want to use Python in Excel for the Microsoft Excel World Championship but I'm 19 days into January and I'm already BLOCKED. Anyone have any ideas how to optimize code so I don't get blocked? Or don't get blocked so fast?  Does anyone know if there will be any way to buy more quota anytime? 

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    patrick1970 

    The monthly quota on Python usage in Excel is currently a limitation that many users are running into. Microsoft has set a monthly usage limit for Python calculations in Excel.

    When you exceed this limit, you'll encounter the "#BLOCKED - You have exceeded your monthly quota of Python usage." message. The quota likely includes the number of Python function calls or the total computation time. However, Microsoft has not publicly detailed the exact criteria or limits. This quota typically resets at the beginning of each month. If you've hit the limit, you'll need to wait until the next month or optimize your Python usage to avoid hitting the quota.

    There is currently no direct payment option for increasing your quota, as far as I am aware.

    My knowledge on this topic is limited, I only describe what I knew up to now, which does not mean that anything has changed in the meantime.

     

    Links:

    how to check quota for Azure spot VMs vCPU's using Python Azure SDK?

    Getting started - Managing Quota using Azure Python SDK

    I would like create quota increase request through cli is it possible.

     

    My answers are voluntary and without guarantee!

     

    Hope this will help you.

    • Kutsimari's avatar
      Kutsimari
      Copper Contributor

      I understand that there is a quota. It's normal because Microsoft's servers are not sufficient. However, there's a problem: I have an Excel file with a total of 22 tabs, each containing independent calculations. When I change the content of a single cell, all formulas in all Excel tabs start working.

      Why are they all running, and why am I not controlling this calculation or compilation process myself? I have Anaconda installed on my machine. If you allow me to run the Excel calculations with Python on my machine without limits, it would be an excellent solution.

      The same issue exists with GPT. We can't perform large calculations on your servers. GPT already says, "You can run this code." GPT and Python in Excel only support small calculations with a few formulas. Unfortunately, large-scale enterprise operations fail.

      Since no CPU or GPU solution is available right now, at least allow running Python within Excel on our own machines until this crisis is resolved. If this isn't possible, only calculate the formulas in the tab I'm currently working on. Additionally, let me control this calculation process.

      When writing a code, all lines of code are executed for each row. This is very unnecessary.

    • Richard_Wendt's avatar
      Richard_Wendt
      Copper Contributor
      That's very disappointing. I was looking forward to trying Python in Excel, but I think I'll wait until I learn more about this.

Resources