Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

Trying to activate Python or PowerShell Kernel failure #26075

Open

Description

@abacrotto

Type: Bug

I am trying to start using PowerShell Kernel in my ADS Notebooks. When I select "PowerShell" in the Kernel combo, ADS goes to a dialog indicating there is the need to install dependencies. Then I follow prompts (I have installed python 3.8.10 that is detected by ADS) but, when y press the "Next" button to install the python packages needed, I get an error:

stderr: ERROR: Cannot install ipykernel==5.5.5, jupyter==1.0.0, jupyterlab==4.2.6 and notebook because these package versions have conflicting dependencies.
stderr: 
stdout: 
stdout: The conflict is caused by:
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.6 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.5 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.4 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.3 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.2 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.1 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.0 depends on ipykernel>=6.5.0
stdout: 
stdout: To fix this you could try to:
stdout: 1. loosen the range of package versions you've specified
stdout: 2. remove package versions to allow pip to attempt to solve the dependency conflict

Azure Data Studio version: azuredatastudio 1.50.0 (49c73a8, 2024-11-17T22:41:05.327Z)
OS version: Windows_NT x64 10.0.26100
Restricted Mode: No
Preview Features: Enabled
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1195G7 @ 2.90GHz (8 x 2918)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.78GB (2.96GB free)
Process Argv
Screen Reader no
VM 0%
Extensions: none ![Image](https://github.com/user-attachments/assets/dddce79a-f5e0-445a-bac0-c2d20142e00c) ![Image](https://github.com/user-attachments/assets/b827412c-532f-4334-9628-5ffdf4a29e4f)

Activity

  1. DearPeter commented on Nov 25, 2024

    @DearPeter

    I have the same issue when try to reinstall notebook dependencies.

  2. redstor-albe commented on Nov 25, 2024

    @redstor-albe

    Also seeing same issue, but with Python 3.13 on Windows 11 on ADS 1.50.0

  3. ssteiner-ballhort commented on Nov 25, 2024

    @ssteiner-ballhort

    Python only works for me after reinstall (also using Python 3.8.10 on Windows 10). It wants me to install the notebook module version 7.2.2 but then doesn't work after I install the new version (currently using version 6.5.6)

  4. BlackholeBun commented on Nov 27, 2024

    @BlackholeBun

    Same problem here. Trying to enable either python core or powershell on mac. It looks like Notebook 7.2.2 needs ipykernel>=6.29.5, but ADS is specifying 5.5.5.

  5. rsulak8 commented on Nov 28, 2024

    @rsulak8

    The same issue, ADS reinstalled, fresh installation of Python 3.8.10 following this:

    https://learn.microsoft.com/en-us/azure-data-studio/notebooks/notebooks-python-offline-installation

    • rust cargo installed.

    ADS 1.50 still not working with Python in notebooks... 👎

  6. abacrotto commented on Nov 28, 2024

    @abacrotto
    Author

    Should we see the "requirements.txt" file somewhere in our ADS directory so we can lift some of the restrictions?
    Does anyone know where the file could be located?

    Thanks in advance.
    Ariel.

  7. cross-apply commented on Dec 7, 2024

    @cross-apply

    I am also unable to switch to Python in ADS 1.5. I've tried multiple versions of Python (3.8, 3.10 and 3.12) with the same result. ERROR: Cannot install ipykernel==5.5.5, jupyter==1.0.0 and notebook

  8. Bowside commented on Dec 9, 2024

    @Bowside

    Same issue for me, Notebook 7.2.2 needs ipykernel>=6.29.5, but ADS is specifying 5.5.5.

  9. dannysnowflake1 commented on Dec 10, 2024

    @dannysnowflake1

    Is there any workaround to this? I'm completely blocked from using ADS currently. ADS crashed and asked me to resupply my python information, and now I can't get into ADS because of the conflicting dependencies issue.

  10. ssteiner-ballhort commented on Dec 10, 2024

    @ssteiner-ballhort
  11. lily407 commented on Dec 10, 2024

    @lily407

    Same issue. I have uninstalled and reinstalled, restarted at least a dozen times....

  12. sam-nolan-tearfund commented on Dec 10, 2024

    @sam-nolan-tearfund

    Same issue. erpett 1.5.0 appears currently broken due to this because of a bump to the notebook version performed by Máté Gyöngyösi (@gy-mate) and merged by Karl Burtram (@kburtram).
    https://github.com/microsoft/azuredatastudio/blame/49c73a84388731fec941dac8d938345ac16bd470/extensions/notebook/src/jupyter/requiredJupyterPackages.ts#L21-L25.
    Change was merged in this PR: #25899

  13. gy-mate commented on Dec 10, 2024

    @gy-mate
    Contributor

    sam-nolan-tearfund I guess all other Python package versions need to be bumped as well (if possible).

    I'm sorry that my PR (#25899) caused the problem—I was trying to fix another bug with it.

  14. redstor-albe commented on Dec 11, 2024

    @redstor-albe

    @sam-nolan-tearfund I guess all other Python package versions need to be bumped as well (if possible).

    I'm sorry that my PR (#25899) caused the problem—I was trying to fix another bug with it.

    [Máté Gyöngyösi (@gy-mate)] It happens. Any workarounds we can try in the meantime? I have everything in notebooks, so this renders the software useless I'm afraid.

  15. lily407 commented on Dec 13, 2024

    @lily407
  16. 12 remaining items

  17. jmhrijdt commented on Jan 28, 2025

    @jmhrijdt

    Is there a date for the update to be released? Can't really do any work now..

  18. stephensteiner4 commented on Jan 28, 2025

    @stephensteiner4

    I was recently on a call with someone from Microsoft about this issue. They’re aware of the issue but there is no timeline to implement a fix. They suggested using Visual Studio Code instead: https://code.visualstudio.com/

    Alternatively, you can install Azure Data Studio version 1.49.1, but the annoying thing is that you’ll have to re-install that every day you want to use Azure Data Studio.

  19. jmhrijdt commented on Jan 28, 2025

    @jmhrijdt

    I was recently on a call with someone from Microsoft about this issue. They’re aware of the issue but there is no timeline to implement a fix. They suggested using Visual Studio Code instead: https://code.visualstudio.com/

    Alternatively, you can install Azure Data Studio version 1.49.1, but the annoying thing is that you’ll have to re-install that every day you want to use Azure Data Studio.

    Alright, will try that. The standalone version could work without the need to re-install every day

  20. jmhrijdt commented on Jan 28, 2025

    @jmhrijdt

    I was recently on a call with someone from Microsoft about this issue. They’re aware of the issue but there is no timeline to implement a fix. They suggested using Visual Studio Code instead: https://code.visualstudio.com/
    Alternatively, you can install Azure Data Studio version 1.49.1, but the annoying thing is that you’ll have to re-install that every day you want to use Azure Data Studio.

    Alright, will try that. The standalone version could work without the need to re-install every day

    Ok so i have fixed the issue using the standalone version of 1.49.1 which makes it possible to keep using it daily without re-installing.

    Steps i took:

    1. Downloaded python 3.8 from https://learn.microsoft.com/en-us/azure-data-studio/notebooks/notebooks-python-offline-installation
    2. Add this python version to path
    3. install the required dependencies manually using pip
    4. Start standalone ADS, it recognized the python version and activated the python notebook kernel without issues

    on a sidenote: I still have the regular new/updated ADS installed as well, but i created a separate user settings folder for the standalone version to avoid any issues.

  21. doonhamer5 commented on Jan 28, 2025

    @doonhamer5

    I've installed Visual Studio Code and it's working OK. Need to have Azure Data Studio to work with my company data though.

  22. Pookam90 commented on Jan 29, 2025

    @Pookam90

    I was recently on a call with someone from Microsoft about this issue. They’re aware of the issue but there is no timeline to implement a fix. They suggested using Visual Studio Code instead: https://code.visualstudio.com/
    Alternatively, you can install Azure Data Studio version 1.49.1, but the annoying thing is that you’ll have to re-install that every day you want to use Azure Data Studio.

    Alright, will try that. The standalone version could work without the need to re-install every day

    Ok so i have fixed the issue using the standalone version of 1.49.1 which makes it possible to keep using it daily without re-installing.

    Steps i took:

    1. Downloaded python 3.8 from https://learn.microsoft.com/en-us/azure-data-studio/notebooks/notebooks-python-offline-installation
    2. Add this python version to path
    3. install the required dependencies manually using pip
    4. Start standalone ADS, it recognized the python version and activated the python notebook kernel without issues

    on a sidenote: I still have the regular new/updated ADS installed as well, but i created a separate user settings folder for the standalone version to avoid any issues.

    Thanks this is working for me as well

  23. WAH19 commented on Jan 29, 2025

    @WAH19

    Just updated to 1.51 and getting a new error. 500 internal server error. I noticed if i open a new notebook and change the kernal to python it works and i can paste code and run. The error comes up when opening an existing .ipynb file.

  24. srallen9-uw commented on Jan 31, 2025

    @srallen9-uw

    We are seeing the same behavior as WAH19.

    We are still getting Python and PowerShell Kernels not to load. This time 500 internal server error. This is on 3 different computers, clean Azure Data Studio installs. Tried both the built in ADS python engine and a separate 3.13 python install. I do notice that if I take the command in terminal window in ADS and run in a separate terminal window (PowerShel 7.5) it runs with some warning, including PyPi management running read-only. Research indicates there was a problem with a change by httpx 0.28.1 that was fixed in Jupyter_lab 4.3.2. ADS installs 4.2.7. Upgrading my install to 4.3.2 makes those warnings disappear, but launching ADS with notebook opens replaces with the older version.

    This locking to an earlier version doesn't seem a great idea because one of problems that prevented downgrading to earlier jupyter was changes to some Microsoft file in an October update that prevented installing an earlier version of pyzmq.

    I can open the notebook in Jupyter through a web browser and the kernels load fine. It's only opening that existing ipynb file in ADS that is the problem. A new ipynb file doesn't have the problem in ADS. Migrating some of our rather large scripts with many section to a new file is a lot of work.

  25. srallen9-uw commented on Jan 31, 2025

    @srallen9-uw

    Also, what's interesting, copying into a new file only works so long as the file is not saved. As soon as I save the file, then the 500 Internal Server Error occurs inside ADS.

  26. dbaduck commented on Feb 2, 2025

    @dbaduck

    I have verified that v1.51 of ADS now installs all the pieces of the PowerShell kernel. Thanks everyone.

  27. rsulak8 commented on Feb 19, 2025

    @rsulak8

    Natural and expected step... Microsoft gave it up.

    https://learn.microsoft.com/en-us/azure-data-studio/whats-happening-azure-data-studio

    Vivat Visual Studio Code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions