-
Notifications
You must be signed in to change notification settings - Fork 290
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
Add setting (other than .env) to append PYTHONPATH to kernel process #9564
Comments
thanks for filling this issue, however i don't quite understand the feature. request here.
please note, when adding PYTHONPATH in . env files you can also use relative paths. would that address your requirements?
don't quite understand this. today the current working directory is already in the current path. |
Yes.
Both
Both
I wish to avoid the use of .env alltogether. Specifically your solution is only valid for vscode so this can be problematic to add to projects.
The example I've added was just a dummy example. for a more complex project where you wish to add other directories to the PYTHONPATH (e.g.: ${fileWorkspaceFolder}/src) this will have a problem. |
Unfortunately we haven't had enough upvotes to warrant adding such a change (feature) into the extension, hence closing this issue |
hi @DonJayamanne PYTHONPATH issues seem quite frequent inside the issues. do you think adding an extension setting like PyCharm "mark folder as source root" could be considered? sorry if this is the wrong place to ask. |
Please could you file a new issue with details of the issue |
I have no issue. I come from PyCharm where I can simply right-click on a folder and mark a directory as source root (i.e. add that folder to
|
As mentioned, please file an issue, and if there are sufficient upvotes for such feature requestes, then we'll consider adding it. |
Applies To
What happened?
Altough launch config exists, the PYTHONPATH is not added.
I know of the solution for .env files but this does not scale for multiple projects and is a specific file only to use jupyter-vscode which is not a great thing to add to a github repo with multiple users... I wish there was a way to add it to the configurations diractly. something like:
Thanks for the great work :)
VS Code Version
latest
Jupyter Extension Version
latest
Jupyter logs
No response
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
No response
The text was updated successfully, but these errors were encountered: