Skip to content
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

Doesn't open file as notebook using conda distros, requires other python install #13

Open
alexanderwelbourne opened this issue Jun 20, 2022 · 6 comments

Comments

@alexanderwelbourne
Copy link

This is actually addressed at the soft fork (https://github.com/congyiwu/vscode-jupytext). Trying to open a file on a machine with only a conda install of python fails even though the notebook, once open, can run using any detected kernel. Currently the work around seems to be to install python system wide (e.g. via microsoft store on windows) even if that's not what will be used.

@DonJayamanne
Copy link
Member

This will be fixed soon

@fschiffers
Copy link

@alexanderwelbourne could you explain more what needs to be done to open a notebook? My notebook just won't open and I don't know what to do.

@ebw44
Copy link

ebw44 commented Jun 4, 2023

After a clean install of Vscode, the extension doesn't work anymore on my computer. I get the error below in the Vscode developer tools console. I'm using Conda (mambaforge) for python, but I have also have a "regular" python installation in c;/Users/username/AppData/Local/Programs/Python/Python310/python.
Installing python from Microsoft store overcomes the problem.

ERR Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
: Error: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

at e.ExtHostCommands.h (c:\Users\username\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:98:125669)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)

Installation details:
Version: 1.78.2 (user setup)
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No

congyiwu.vscode-jupytext v0.1.2

@seandata
Copy link

seandata commented Jun 7, 2023

@ebw44 - I am getting the same error. Have you found a fix?

@ebw44
Copy link

ebw44 commented Jun 12, 2023

@seandata Installing python from the windows store fixed the issue for me

@alexanderwelbourne
Copy link
Author

@seandata @fschiffers The workaround is as @ebw44 states, install python from the windows store. Once the notebook is open, you can select to use a different python kernal if you wish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants