-
Notifications
You must be signed in to change notification settings - Fork 907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'notebook.notebookapp' #23945
Comments
Same for me, even when configuring a new runtime @ C:\Users\xyz\azuredatastudio-python "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): Version: 1.44.1 (system setup) |
I ended up setting Anaconda with notebook support and pointing it to that instance. that seem to work. |
Same issue on: Ran setup for python using /opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11 I have additionally tried installing manually this notebook package via pip to no success. Here is the log, sanitised:
And this produces the following error:
|
This is due to a change in module structure with jupyter notebook version 7. Downgrading the notebook version to 6.5 worked for me. |
Tested and can confirm this workaround works;
At the very least, error handling should be introduced informing the user that their version is not supported. Preferably support for v7 will be implemented though. |
@kalo37 @olliescase |
No worries, I'll let @kalo37 take all the credit here for finding the cause of the problem 🙂 If someone wanted to take a stab at fixing this file: I'm not exactly the most qualified when it comes to python. I think it should be as simple as changing |
@olliescase I too, am not an expert and currently refreshing my python (& SQL) and jupyter knowledge. |
@olliescase DOOD...I FREAKING LOVE YOU...This fixed it.. I seriously was so mad and all the solutions online didnt work for me. I tried doing what you said and it worked. For those who are curious, go to ur jupyter file, under scripts you will find jupyter-notebook-scripts.py. open it up and modify the code from notebook.notebookapp to notebook.app |
It worked with me too thanks! |
For anyone here that continued to have issues after downgrading the notebook version per @kalo37 and @olliescase , I used |
You saved my jupyter notebook! You are a genius! |
I am using windos with anaconda the error was like this : ModuleNotFoundError: No module named 'notebook.notebookapp' and this solved the problem: conda update -n base -c defaults conda |
The issue was resolved as soon as i downgraded the version to 6.5.5 . Thank you so much. |
notebook==6.5.5 |
notebook==6.5.5 |
Type: Bug
I get this error when trying to activate Python3 kernel. I have tried to install ADS new, from zip. I have tried existing Python install and new. In all cases it fails
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<username>\AppData\Local\Programs\Azure Data Studio\resources\app\extensions\notebook\resources\pythonScripts\startNotebook.py", line 1, in
import notebook.notebookapp
ModuleNotFoundError: No module named 'notebook.notebookapp'
Tried to do pip install notebook as per many suggestions on stackoverflow.
tried
pip uninstall notebook
pip install notebook
tried
pip install --upgrade pip setuptools
no luck :-(
Azure Data Studio version: azuredatastudio 1.44.1 (8f53a31, 2023-06-01T02:12:48.765Z)
OS version: Windows_NT x64 10.0.22621
Restricted Mode: No
Preview Features: Disabled
Modes:
System Info
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
The text was updated successfully, but these errors were encountered: