-
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
Python extension is broken #2341
Comments
Looks like we have another broken extension...I wonder why it works in
3.6.2 though. Maybe it's pulling a different version of the Python
extension.
|
I think it started to break with Python 2020.11 where it separated Jupyter into a standalone extension and was dependent on it: |
@zhizheng-1 Thanks! I can confirm that the 2020.10 version (link below) does indeed work with code-server 3.7.2 https://github.com/microsoft/vscode-python/releases/tag/2020.10.332292344 |
The problem I believe is that you are shipping the |
Ahhhhhh I see. It doesn't look like they use GitHub releases or tags so our builder must just be continually building off master and breaking all the time as a consequence. |
Any timeline to get this fixed or is there any workaround ? :) |
No timeline yet; I'm not entirely sure we can do anything differently
from our end other than manually updating the version which won't be
sustainable. Maybe we can get the vscode-jupyter repo to start adding
releases to GitHub, then our marketplace can just pull those in instead
of building itself.
|
@ttthree I installed the latest extension versions of jupyter and python from marketplace (link below for jupyter) and that seems to work. https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter |
I build code-server into a Docker image I use. I got it working by first installing the python extension (which now automatically installs the 2020.12.0-dev jupyter extension mentioned above from code-server. I then install the jupyter vsix linked above with --force because it sees it as an older version. I then add "extensions.autoUpdate": false to my settings.json file so it doesn't automatically update to the incompatible version upon startup. |
@jhallas Could you eventually share the Dockerfile you are using? I've been downgrading to 3.4.1 and for quite a long time now... |
@gogobd I'm currently using the following code in a Dockerfile with code-server 3.7.4: [...]
&& code-server --install-extension ms-toolsai.jupyter-2020.11.399280825.vsix || true \
&& code-server --install-extension ms-python.python \
[...] See #2355 (comment) about standard bash ignore error |
Hmm.. I found 3.5 to work for me! |
Hi, Sorry for the delay. I can't share the Dockerfile but this is what I do:
|
Thanks to the comments I found here here that made it work for me... |
By any chance, is there a timetable for getting the extension working again? I really want to use code-server, but as an ML person trying to use code-server on remote GPUs, the Python extension not working is a showstopper for me. Hoping it gets fixed soon, as I'd love to use this. |
@pseeth I think it works even with the most recent version as long as you download the extension vsix for python and jupyter from the vs code website manually install with the considerations I listed. |
Hey, I think I managed to get it working - you may need to "reset" your I did some manual wrangling and downgraded the Jupyter extension and upgraded the Python extension that's being served; it may break every time MS pushes a new update, but I'll force-downgrade it whenever its needed. Closing for now! |
I totally agree with @Ki6an, but the problem is I cannot run ipython widgets in that version. More precisely, I would like to run the nglview plug-in for my work. Do you know how I could run that widget in the |
Alright, latest versions that work for me are Python |
I have just tried |
doesnt work for me. im on 3.9.1 and updated python extension to 2021.2.633..... |
It's also working for me with |
We were hoping that we could switch from our internal gallery to OpenVSX and then hope upstream/OpenVSX could sort out the versioning issues; but then I decided to just manually override the versions we're serving right now, since we're blocked on web extension support for OpenVSX. I didn't expect 2021.3 to work as that depends on VSCode 1.54, which we're yet to update to. |
|
I went back and checked and it looks like even though I explicitly set the version to RUN code-server --install-extension [email protected] The extension page in the IDE is showing that So The good news is |
@rushtehrani, that's probably due to #2626 |
After I set an env variable to install python3 I could install 2021.3 of the ms-python extension. https://github.com/linuxserver/docker-mods/tree/code-server-python3 |
it's weird but all the previous workarounds don't work for me any more... I get ChunkLoadError with 2020.10.332292344/ms-python-release.vsix and everything else I tried didn't work either. Is there a known working solution for docker currently? |
The code-server version I believe |
It seems like the python interpreter cannot be selected in 3.7.1
Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found)
The text was updated successfully, but these errors were encountered: