Closed arifyunando closed 3 years ago
I made a dedicated environment for a project
IJulia must be installed in the global/default Julia environment, unless you use the IJulia.installkernel
function to install a kernel that launches Julia in your environment.
Current Outcome: Recently, I freshly installed Julia 1.6.2 in my computer. I made a dedicated environment for a project with Pkg.generate("envName") along with Python venv. After activating python venv and installing jupyter with pip, I open Julia and set environment variable as below:
Those 2 commands set the environment variable to the binaries in the venv folder. After activating environments with Pkg.activate("envName"), I proceed with installing IJulia with Pkg.add("IJulia") within generated TOML file. The installation went normally without any error, and when I run IJulia.notebook(dir="path/to/project"), jupyter notebook opened just fine. However, when I open a notebook with IJulia kernel, it tries to start the kernel for a while and then throws "Dead Kernel" prompts to me.
Expected Outcome : The kernel started successfully and I can use Julia in my notebook.
Action taken : I tried updating IJulia and build it again [Fail], I tried installkernel("Julia", "--project="path/to/project.toml") [Fail]. I also tried to open jupyter notebook directly from cmd (not Julia REPL), and it throws me this message
Possible cause: jupyter notebook doesnt find IJulia in the place project.toml directed, or maybe jupyter notebook doesnt find the project.toml at all