You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jupyter Notebook should open, connect to a Kernel and cells should be ready to run
Actual
Even after a series of installations of plugins (that seem to work fine) the Notebook can connect to a kernel but no output is being received (all i see is "Loading...", then after some time I get the error shown in the screenshot "ChunkLoadError")
This time I tried to installed (Mini-)conda environment into docker before getting and starting code server.
1.) I click the .ipynb file, Code Server asks me if I want to search the Marketplace for support for ipnb files, I agree and install Jupyter v2021.3.0
2.) I install Python v2021.4.765268190
3.) I click the .ipynb file again and Code Server installs an ipython kernel
4.) I can select the kernel and get no error message when I connect to it
5.) I try to run a "print('Hello, world!')" cell and get the error message posted previously - after about a minute or so
I was trying to provide the console logs when the bug just went away. I don't know why but it's not an issue any more. I'm closing this, sorry for the fuzz.
I was now reproducing this issue both with a conda environment and debian buster python3 (both inside docker). Code Server asks me to install the Jupyter extension, then Python, then it installs ipython Kernel; unfortunately the ChunkLoadError comes up every time now again.
I gave it a try and I'm seeing the same thing (or something similar). It says Not connected. If I click it to connect it fails with:
Error: Jupyter cannot be started. Error attempting to locate jupyter: Data Science libraries jupyter and notebook are not installed in interpreter Python 2.7.17 64-bit
If I switch to Python 3 using the button in the status bar I get this instead:
Error: Jupyter cannot be started. Error attempting to locate jupyter:
When I shift-reload code server i see "Connecting to Python 3", then the icon goes green and I'm connected (idle). But a cell containing "print('Hello, world!')" just yields "Loading...", then, later, the error I posted above (ChunkLoadError: Loading chunk vendorsdataresourcegeojsonmodeldebugnteract_transf...). So for me connecting (supposedly) works, execution doesn't. @code-asher Thank you very much for your help, though! I think it helped clarify this issue :-)
With OpenVSX I wasn't able to connect to the kernel - and I tried again now via Command Palette: The Command is available but no Kernels are being presented. It's very weird because console log says "Kernel: connected (099ad007-dbfd-48c6-ab30-003320fe07a9)" but the icons don't change, it keeps saying "Python3: Not Started". Note: I had two packages installed: Python v2020.10.33 (OpenVSX) and Jupyter v2021.3.0 (from Marketplace).
Oh maybe that's it! I actually forgot to mention I had a similar problem. I tried to uninstall the Python and Jupyter extensions and then install the OpenVSX Jupyter extension (it contains both Python and Jupyter from before they were split) but I ended up having to wipe the extensions in ~/.local/share/extensions and then install the OpenVSX one again.
VS Code doesn't actually remove extensions from disk when uninstalling so I think it causes weird issues when adding a different version of an uninstalled extension manually.
I was using docker and actually deleted the images and containers frequently for a fresh start; the ~/.local/share/code-server/extensions/ are not in my /app dir so I think that can't be it...
Thank you very much for your help, it's very appreciated!
docker build -t jupyter .
docker run -v $(pwd):/app -p 8080:8080 -it -d jupyter
docker exec -it <dontainer_id> cat /root/.config/code-server/config.yaml (to see the generated password)
Then follow 4, 5, 6, 7, 8, 9, 10, 11 and 12
And all I got is "Loading..." and then the ChunkLoadError. That was quite unexpected because we were using the same Dockerfile. My Docker host is macOS Big Sur 11.3; But my Broser is Brave - so i tried Safari and: The cell executed!
I turned off "Shields" for localhost:8080 but the cells are still not executing in Brave (still working fine in Safari). This whole thing is a browser issue!
For completeness: after resetting Brave this issue is gone even when I use the Marketplace Extensions Jupyter v2021.3.0 and Python v2021.4.765268190 which are being installed as defaults (code server 3.9.3)!
Activity
gogobd commentedon Apr 26, 2021
I tried again, still no dice.
This time I tried to installed (Mini-)conda environment into docker before getting and starting code server.
1.) I click the .ipynb file, Code Server asks me if I want to search the Marketplace for support for ipnb files, I agree and install Jupyter v2021.3.0
2.) I install Python v2021.4.765268190
3.) I click the .ipynb file again and Code Server installs an ipython kernel
4.) I can select the kernel and get no error message when I connect to it
5.) I try to run a "print('Hello, world!')" cell and get the error message posted previously - after about a minute or so
code-asher commentedon Apr 26, 2021
Is that the only error you see in the browser console logs?
gogobd commentedon Apr 26, 2021
This error is seen in the editor, i didn’t look at the browsers console log
code-asher commentedon Apr 26, 2021
Oops my bad. Please post the browser console logs! The code-server logs may also be helpful although in this case probably not.
gogobd commentedon Apr 26, 2021
I was trying to provide the console logs when the bug just went away. I don't know why but it's not an issue any more. I'm closing this, sorry for the fuzz.
gogobd commentedon Apr 26, 2021
Ok; i was able to reproduce this here's the browser's console log:
gogobd commentedon Apr 26, 2021
I was now reproducing this issue both with a conda environment and debian buster python3 (both inside docker). Code Server asks me to install the Jupyter extension, then Python, then it installs ipython Kernel; unfortunately the ChunkLoadError comes up every time now again.
code-asher commentedon Apr 26, 2021
I tried to replicate but I ran into issues with the extension activating at all; I'm getting the error mentioned here: #2929
I'd be interested in seeing if downloading and installing the extension from OpenVSX instead of our marketplace works for you: https://open-vsx.org/extension/ms-python/python
gogobd commentedon Apr 26, 2021
With https://open-vsx.org/api/ms-python/python/2020.10.332292344/file/ms-python.python-2020.10.332292344.vsix installed (and de-selecting Extensions: Automatic Updates first) it was kinda worse - I wasn't even able to connect to the ipython Kernel. Even though at one point Code Server has installed ipython.
code-asher commentedon Apr 28, 2021
I gave it a try and I'm seeing the same thing (or something similar). It says
Not connected. If I click it to connect it fails with:If I switch to Python 3 using the button in the status bar I get this instead:
Jupyter is in my path so I'm not sure why.
So then I opened the command pallete and switched the interpreter there instead and for some reason that worked. (Credit here: https://stackoverflow.com/questions/60330837/jupyter-server-not-started-no-kernel-in-vs-code)
I don't know if any of that applies to your situation but maybe it'll be helpful.
gogobd commentedon Apr 28, 2021
When I shift-reload code server i see "Connecting to Python 3", then the icon goes green and I'm connected (idle). But a cell containing "print('Hello, world!')" just yields "Loading...", then, later, the error I posted above (ChunkLoadError: Loading chunk vendors
dataresourcegeojsonmodeldebugnteract_transf...). So for me connecting (supposedly) works, execution doesn't.@code-asher Thank you very much for your help, though! I think it helped clarify this issue :-)
2 remaining items
gogobd commentedon Apr 28, 2021
code-asher commentedon Apr 28, 2021
Oh those weren't the logs with the version from our marketplace and not the OpenVSX one?
I'll give the Dockerfile a run when I get a chance.
gogobd commentedon Apr 28, 2021
With OpenVSX I wasn't able to connect to the kernel - and I tried again now via Command Palette: The Command is available but no Kernels are being presented. It's very weird because console log says "Kernel: connected (099ad007-dbfd-48c6-ab30-003320fe07a9)" but the icons don't change, it keeps saying "Python3: Not Started". Note: I had two packages installed: Python v2020.10.33 (OpenVSX) and Jupyter v2021.3.0 (from Marketplace).
code-asher commentedon Apr 28, 2021
Oh maybe that's it! I actually forgot to mention I had a similar problem. I tried to uninstall the Python and Jupyter extensions and then install the OpenVSX Jupyter extension (it contains both Python and Jupyter from before they were split) but I ended up having to wipe the extensions in
~/.local/share/extensionsand then install the OpenVSX one again.VS Code doesn't actually remove extensions from disk when uninstalling so I think it causes weird issues when adding a different version of an uninstalled extension manually.
gogobd commentedon Apr 28, 2021
I was using docker and actually deleted the images and containers frequently for a fresh start; the ~/.local/share/code-server/extensions/ are not in my /app dir so I think that can't be it...
Thank you very much for your help, it's very appreciated!
gogobd commentedon Apr 28, 2021
Oh, and I can't find a dedicated "Jupyter" Extension on OpenVSX!
code-asher commentedon Apr 28, 2021
Ah right that makes sense.
The Python extension on OpenVSX includes both Python and Jupyter.
It was split into two extensions but OpenVSX still has the version from before the split.
code-asher commentedon Apr 28, 2021
I gave your Dockerfile a run and everything worked! My exact steps:
wget https://open-vsx.org/api/ms-python/python/2020.10.332292344/file/ms-python.python-2020.10.332292344.vsixCreate New Blank Jupyter Notebookprint("hello")to the cellgogobd commentedon Apr 28, 2021
This is so weird, I was trying
docker build -t jupyter .
docker run -v $(pwd):/app -p 8080:8080 -it -d jupyter
docker exec -it <dontainer_id> cat /root/.config/code-server/config.yaml (to see the generated password)
Then follow 4, 5, 6, 7, 8, 9, 10, 11 and 12
And all I got is "Loading..." and then the ChunkLoadError. That was quite unexpected because we were using the same Dockerfile. My Docker host is macOS Big Sur 11.3; But my Broser is Brave - so i tried Safari and: The cell executed!
gogobd commentedon Apr 28, 2021
I turned off "Shields" for localhost:8080 but the cells are still not executing in Brave (still working fine in Safari). This whole thing is a browser issue!
gogobd commentedon Apr 28, 2021
After deleting all user data related to Brave and re-installing it cell execution works again like it should!
gogobd commentedon Apr 28, 2021
Thanks, @code-asher your help solved my issue!
code-asher commentedon Apr 28, 2021
Very interesting! I'm glad we got it sorted! 😄
gogobd commentedon Apr 28, 2021
For completeness: after resetting Brave this issue is gone even when I use the Marketplace Extensions Jupyter v2021.3.0 and Python v2021.4.765268190 which are being installed as defaults (code server 3.9.3)!