-
Notifications
You must be signed in to change notification settings - Fork 298
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
command not found when I try execute shell script in jupyter cell #9917
Comments
thanks for the bug, not sure why that would be happening. |
Seems to possibly be related to #9682, @DonJayamanne, please check. |
@ztlevi Looks like this works as expected in Jupyter Notebook/Lab (based on your screenshot). import os
os.environ Print the values in both and compare them and see if there are any differences specific to the shell, |
@DonJayamanne Compare side by side, left is the PATH print from vscode notebook, right is PATH print from jupyter notebook. Left doesn't have |
@ztlevi thanks for getting back with the information. As a temporary work around you could:
"jupyter.runStartupCommands": [
"import sys",
"sys.path.append('/bin')"
] Please note, this is only a work around and we'll be looking into a more permanent fix as part of #9682 |
Thanks. This one doesn't work for me. I have to tweak a little bit.
|
@ztlevi
Also, please could you provide the output from the |
Nice. it works! |
Reopening the ticket as this issue happen in latests Jupyter v2023.1.2010391206. VSCode version is 1.75.0 |
Please could you enable logging as follows:
|
Closing this issue as its been over 4 weeks, since the information was requested. |
Environment data
Expected behaviour
Actual behaviour
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
This is due to my personal setup in zsh https://github.com/ztlevi/dotty-config/blob/652cff7fae4abadaa8016847933c71c235250b2d/env#L81
Logs
Output for
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)The text was updated successfully, but these errors were encountered: