-
Notifications
You must be signed in to change notification settings - Fork 355
Closed
Labels
language-anyArea covering general issues geared to supporting any language (not just Python)Area covering general issues geared to supporting any language (not just Python)partner
Description
Environment data
- VS Code version: 1.56.0-insider
- Jupyter Extension version (available under the Extensions sidebar): 2021.6.790799743
- Python Extension version (available under the Extensions sidebar): XXX
- OS (Windows | Mac | Linux distro) and version: Win10 21H1 (19043.962)
- Python and/or Anaconda version: (Conda pkg from Julia)
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A?
- Jupyter server running: Local
Expected behaviour
When using a Julia notebook, having selected a Julia environment, available packages should reflect that environment, and adding/removing packages should affect only that environment.
Actual behaviour
Only the default (eg, "v1.6") environment is used. The selected environment is indexed, but commands are not run against it.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
- Install Julia
- In Julia:
import Pkg Pkg.add("IJulia")Pkg.add("Conda")import Conda; Conda.add("ipython")]to get to Pkg mode, prompt should reflect v1.6 environmentbuild- (At this point, I believe Jupyter kernel should now be available for connection)
- still in Pkg mode:
activate cas - (At this point a new environment folder has been created)
add SymPy- (At this point, cas environment, not the v1.6 environment, should have SymPy installed. Verify with st command.)
- In VSCode, add new notebook, set for Julia.
1+1(should return2)using SymPy(returns LoadError -- this is expected)- select cas environment via UI in status bar .. probably located under user folder
using SymPy(returns LoadError -- this is the problem)- Open new Julia shell. Type
]for Pkg mode. Prompt should show v1.6 environment. stto confirm SymPy not presentadd SymPy; verify withst- Repeat starting at (11). Lines 13 and 15 should both succeed.
@vars x yshould return(x, y) - while in the cas environment in VSCode,
import Pkg; Pkg.remove("SymPy") - In Julia shell's Pkg mode,
stshould now show SymPy removed from v1.6 environment, yet remains in cas environement. This is the problem, again.
Logs
> ~\AppData\Local\Programs\Julia-1.6.1\bin\julia.exe -i --color=yes --project=@. ~\.julia\packages\IJulia\e8kqU\src\kernel.jl ~\AppData\Local\Temp\tmp-26076Hwwked5aynhv.json
cwd: ~\AppData\Local\Programs\Microsoft VS Code Insiders
Metadata
Metadata
Assignees
Labels
language-anyArea covering general issues geared to supporting any language (not just Python)Area covering general issues geared to supporting any language (not just Python)partner