question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow a machine to configure the default Python interpreter version

See original GitHub issue

Codespaces recently updated its base image to pre-install Jupyter along with a handful of ubiquitous ML libraries (e.g. pandas, torch, etc.). These libraries are installed into the context of the latest version of Python that’s installed (currently 3.10.4), which is also set as the default Python version in the user’s $PATH. Because of this, it would be ideal if when a user opened an *.ipynb file in a Codespace, that we could have it automatically select the kernel for the latest Python version. That way, there’s a seamless continuity between the terminal and notebooks, without the user needing to select a kernel manually, and potentially get confused.

For example, the following is a screenshot of what the kernel picker looks like in a Codespace, and it would be awesome if we could somehow configure the environment to pre-select Python 3.10.4 64-bit.

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lostintangentcommented, May 12, 2022

Yep this makes sense, and the changes I mentioned above are live in Codespaces.

Since Codespaces are ephemeral and meant to be used as project/task-specific environments, we chose to install Jupyter and ML libs in the global installation, since that allowed users to have a “zero config” onboarding experience, without needing to deal with virtual environments. We might evolve that over time, but this was also the recommendation by @brettcannon.

0reactions
karrtikrcommented, Dec 13, 2022

These libraries are installed into the context of the latest version of Python that’s installed (currently 3.10.4), which is also set as the default Python version in the user’s $PATH

As I understand the ask is to select the default Python version on $PATH automatically, in that case this is a dup of https://github.com/microsoft/vscode-python/issues/19818. Let me know if that’s not the case and we can reopen the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow a machine to configure the default Python interpreter ...
Allow a machine to configure the default Python interpreter version · Issue #20316 · microsoft/vscode-python · GitHub.
Read more >
Configure a system interpreter | PyCharm Documentation
Configure a system interpreter · Click the Python Interpreter selector and choose Add New Interpreter. · Press Ctrl+Alt+S to open Settings/ ...
Read more >
How Should I Set Default Python Version In Windows?
This is if you have both the versions installed. Go to This PC → Right-click → Click on Properties → Advanced System Settings....
Read more >
How to set Python3 as default interpreter for VS code - YouTube
Want to run your python code with a particular python version, and make it the default version. Check this video.
Read more >
3. Configure Python — Python 3.11.1 documentation
Changed in version 3.11: The default suffix on WASM platform is one of .js ... Disable also semantic interposition in libpython if --enable-shared...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found