When trying to go through the codespaces-getting-started-ml sample repo in JupyterLab, we are failing to import some packages. This is due to us installing jupyterlab with python 3.9 instead of 3.10. The same does not happen in VS Code.
Repro:
- Create a codespace using the repo mentioned above
- Connect to JupyterLab using
gh cs jupyter
- Attempt to run the first cell and notice that it fails to import
torch
Notes:
- You can verify that this is the issue by running
pip list to see that jupyterlab is missing from the list of python 3.10 packages and /usr/local/python/3.9.14/bin/pip list to see that it's installed under python 3.9`
cc. JP Ungaretti (@jungaretti) Samruddhi Khandale (@samruddhikhandale)
When trying to go through the codespaces-getting-started-ml sample repo in JupyterLab, we are failing to import some packages. This is due to us installing
jupyterlabwith python 3.9 instead of 3.10. The same does not happen in VS Code.Repro:
gh cs jupytertorchNotes:
pip listto see thatjupyterlabis missing from the list of python 3.10 packages and/usr/local/python/3.9.14/bin/pip listto see that it's installed under python 3.9`cc. JP Ungaretti (@jungaretti) Samruddhi Khandale (@samruddhikhandale)