0

Trying to implement Python code in Azure data studio

Failed to change kernel. Kernel SQL will be used. Error was: Notebook process exited prematurely with error code: 1. StdErr Output: Traceback (most recent call last):
  File "c:\Users\subin\AppData\Local\Programs\Azure Data Studio\resources\app\extensions\notebook\resources\pythonScripts\startNotebook.py", line 1, in <module>
    import notebook.notebookapp
ModuleNotFoundError: No module named 'notebook.notebookapp'
moken
  • 3,227
  • 8
  • 13
  • 23

1 Answers1

0

When I am trying to change kernel from SQL to python in Azure data studio, I got the same error:

enter image description here

When I select New python installation as install type python is installing in below path.

enter image description here

Because of above python location I am getting above error. I tried attaching to the Python.exe that Anaconda installed in my user directory as mentioned below.

enter image description here

Then the kernel changed, and notebook run successfully.

enter image description here

Bhavani
  • 1,725
  • 1
  • 3
  • 6