-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Jupyter Notebook cells don’t execute properly #3199
Comments
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 |
Is that the only error you see in the browser console logs? |
This error is seen in the editor, i didn’t look at the browsers console log |
Oops my bad. Please post the browser console logs! The code-server logs may also be helpful although in this case probably not. |
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. |
Ok; i was able to reproduce this here's the browser's console log:
|
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 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 |
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. |
I gave it a try and I'm seeing the same thing (or something similar). It says
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. |
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 |
Ah that's unfortunate. This won't be helpful but running cells is working for me (similar code, just a simple I don't think we've seen the browser logs yet with the OpenVSX version so posting those might lead to a clue. |
I was posting the console log before (#3199 (comment)) maybe i should just post the Dockerfile |
|
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. |
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 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... |
Oh, and I can't find a dedicated "Jupyter" Extension on OpenVSX! |
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. |
I gave your Dockerfile a run and everything worked! My exact steps:
|
This is so weird, I was trying docker build -t jupyter . 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! |
After deleting all user data related to Brave and re-installing it cell execution works again like it should! |
Thanks, @code-asher your help solved my issue! |
Very interesting! I'm glad we got it sorted! 😄 |
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)! |
OS/Web Information
code-server --version
: 3.9.3Steps to Reproduce
Expected
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")
Screenshot
Notes
This issue can be reproduced in VS Code: No idea.
The text was updated successfully, but these errors were encountered: