Forum Discussion

merganzeruncle's avatar
merganzeruncle
Frequent Visitor
1 year ago
Solved

VSCode extension "display(df)" command forces opening in Data Wrangler

I recently started using the VSCode Fabric Data Engineering extension, but haven't been able to make it work well enough to actually develop notebooks in VSCode.   When I try to use the "display" c...
  • v-sgandrathi's avatar
    v-sgandrathi
    1 year ago

    Hi merganzeruncle,

    Thankyou for  using Microsoft Community Forum!

     

    You have a good understanding of the issue, and you're right about the root cause. I've provided additional clarification to help give a clearer understanding of it.


    When you select the fabric-synapse-runtime-1-2 kernel in VSCode, it is expected to activate the corresponding Conda environment. However, because your Conda configuration (envs_dirs) was not set up correctly, VSCode couldn't locate and activate the intended environment, causing it to fall back to the base environment instead.

    The Fabric Data Engineering extension appears to default to using Data Wrangler for displaying DataFrames. Since Data Wrangler only supports Pandas DataFrames and not PySpark DataFrames, using the display(df) command mistakenly triggers the Data Wrangler prompt, even though it’s incompatible.

    The below is the Link you can have a look for your reference:
    Explore and transform Spark data with Data Wrangler - Microsoft Fabric | Microsoft Learn

    If this solution worked for you, kindly mark it as Accept as Solution and feel free to give a Kudos, it would be much appreciated!