Forum Discussion

GuillaumePower's avatar
GuillaumePower
Resolver I
2 years ago

Python script in my NoteBook that shows only a log

I've seen that sometimes, in my Notebooks, I can't have a right process, the script in my cell runs during only 2 seconds and I get only a log and all the print function in the cells doesn't write anything to the screen. Sometimes the process is right and  turns during 40 seconds to show me the data created by a Natural Language Processing with the pachage Spacy but sometimes the process doen't show more that a log. (with no change betweenn the two events.) Have you already have this problem ?

(I use Fabric with my free Power BI account, perhaps I've not enough right to use the CPU)

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi GuillaumePower 
    Thanks for using Fabric Community.

    It sounds like you’re experiencing inconsistent behavior when running your Microsoft Fabric Notebook cells, particularly when using the Spacy package for Natural Language Processing (NLP). This could be due to a few reasons:

    Resource Limitations:
    If you’re using a free Power BI account with Fabric, there might be limitations on the amount of CPU and memory you can use. This could cause your scripts to terminate prematurely if they exceed these limits.

    Concurrency Issues:
    If you’re running multiple cells or notebooks at the same time, they might be competing for resources. This could cause some cells to finish quickly while others take longer.

    Spacy Package:
    Spacy is a powerful NLP library, but it can be resource-intensive. If your dataset is large, it might take a while to process. Also, ensure you’re using the latest version of Spacy as older versions might have performance issues.

    To troubleshoot, you could try the following:

    Monitor Resource Usage:
    Check your capacity usage while your notebook is running to see if you’re hitting any limits.
    Run Cells Individually:Try running your cells one at a time to see if the issue persists.
    Update Libraries: Ensure that all your Python libraries, including Spacy, are up-to-date.

    Hope this helps.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi GuillaumePower 
      We haven’t heard from you on the last response and was just checking back to see if your query got resolved. Otherwise, will respond back with the more details and we will try to help.
      Thanks

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi @GuillaumePower 
        We haven’t heard from you on the last response and was just checking back to see if your query got resolved. Otherwise, will respond back with the more details and we will try to help.
        Thanks