Jupyter Notebook does not execute !python or %run in the selected conda environment. #4682
Labels
info-needed
Issue requires more information from poster
notebook-kernel
Kernels issues (start/restart/switch/execution, install ipykernel)
Environment data
python.languageServer
setting: Jedi[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (
python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]Expected behaviour
Python script run using !python or %run within a cell in a jupyter notebook uses the same environment as the jupyter notebook
Actual behaviour
Python script uses base conda environment rather than the selected conda environment
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: