Forum Discussion

paatrickd's avatar
paatrickd
New Member
2 years ago
Solved

VS Code Synapse integration not working

Hi,   I want to open a notebook from Fabric in Visual Studio Code.   I followed the installation guide and managed to activate the Synapse Kernal and open a notebook in VS Code, however it does n...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi paatrickd 
    Thanks for using Fabric Community.
    Can you please follow the below troubleshooting steps and provide the details:

    1) Right click the ipython notebook.

     




    2) Open the python log file: ../../logs/${NOTEBOOK_ARTIFACT_ID}/PySparkLighter.log and check the session failure reason.


    Please provide the error details so that I can help you better.

    Thank you.

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi paatrickd 
    Thanks for the update.
    Maybe you have installed conda, but forgot to set the environment variable. Please check that.
    After creating the conda environment, it will install the spark-lighter-lib whl package from blob. The whl package will be automatically upgraded when the version in the conda environment does not match the minimum required version of the extension. If there is any issue with the upgration, you could run the below code :

    conda activate ${CONDA_ENV_NAME}
    pip uninstall spark-lighter-lib
    pip install https://path/to/spark-lighter-lib.whl


    Also try these steps.

    1. Open the VS Code command palette and select/type 'Python: Create Terminal'
    2. In the terminal, run the following command: conda install pyspark
    3. Restart VS Code and try again.


    Hope this helps. Please let me know if you have any further questions.

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi paatrickd ,
    Go to the upper folder to find a folder called logs.