-
Notifications
You must be signed in to change notification settings - Fork 4
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
✨ Provide older versions (3.9) of Python for VSCode on AP #4452
Comments
Just realised I probably won't be able to install |
deadsnakes PPA does not provide 3.9 for Ubuntu 24.04
Source: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa However, noble is listed here https://github.com/deadsnakes/python3.9 |
@mshodge I was able to install and use Python 3.9 with Conda on the latest (1.4.0) release of VSCode on the Analytical Platform $ conda create -n py39 python=3.9
$ conda init Open a new shell and then $ conda activate py39
$ python --version
Python 3.9.19 |
Does that not mean they do provide 3.9 though and |
I'll give this a try, thanks. But many of the Data Scientists tend not to use conda environments from what I see and instead use |
Looks promising so far. But led me down a rabbit hole of possibly tidying up the User Guidance and adding some sections: https://asdslack.slack.com/archives/G2T9SMUVD/p1717749226385309 |
@mshodge they do, just doesn't look like its reflected in the PPA site, i've got a working PoC here ministryofjustice/analytical-platform-visual-studio-code#85
I can't open that link, but let me know how you get on, if it doesn't work, I can publish a release candidate of my PoC next week and you can test that. There is a lot going on with |
Thanks @jacobwoffenden. It's a slack post to the DEDs channel, copied here for ease:
I'll keep testing the conda approach, it worked with a simple |
@mshodge has confirmed that we can close this FR, as the built in Conda can provide this functionality |
Describe the feature request.
The AP currently has Python 3.12 installed by default on the Visual Studio Code 1.3.0 install. There are many changes between this version of Python to the versions of Python on the JupyterLab installs (3.9) which means working between JupyerLabs and VS Code becomes a bit of a headache because of the severe changes to things like
dsutils
in Python 3.12.Whenever I try and QA code using VS Code, I am battling version issues if the other person has written the code in JupyterLab for example.
I would be able to install Python 3.9 on VS Code using
pyenv
, but an easier solution to provide interoperability and encourage changeover from JupyerLabs to VS Code would be to provide the same Python version on each. For now, that would make sense to put a Python 3.9 version on VS Code I think.Describe the context.
No response
Value / Purpose
Prevents wasted time in installing through pyenv and breakages between using JupyterLab and VS Code.
User Types
Analysts
The text was updated successfully, but these errors were encountered: