# Jupyter lab run\_kernel not working

**URL:** https://discourse.julialang.org/t/jupyter-lab-run-kernel-not-working/132671
**Category:** Jupyter-Notebook
**Tags:** jupyter, ijulia
**Created:** [September 26, 2025, 8:59am UTC](https://discourse.julialang.org/t/jupyter-lab-run-kernel-not-working/132671 "2025-09-26T08:59:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cpf-work](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cpf-work/32/53078_2.png) [@cpf-work](https://discourse.julialang.org/u/cpf-work)
#### Post date: [September 26, 2025, 8:59am UTC](https://discourse.julialang.org/t/jupyter-lab-run-kernel-not-working/132671/1 "2025-09-26T08:59:43Z")

</div>

I finally decided to update to 1.11 and juliaup. So I installed 1.11 with juliaup and got rid of the former 1.9 version I used. Ì’m on Windows 11. Everything seemed working except jupyterlab. I get the following in the terminal from which I started jupyter lab:

```julia-auto
ERROR: UndefVarError: `run_kernel` not defined in `IJulia`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base .\Base.jl:42
 [2] top-level scope
   @ none:1

```

I started digging a bit and looked in the kernel.json where it seems the following is executed

```julia-auto
import IJulia; IJulia.run_kernel()"

```

So I tried this in the repl and I get

```julia-auto
Starting kernel event loops.
connect ipython with --existing C:\WINDOWS\System32/profile-15844.json
ERROR: SystemError: opening file "profile-15844.json": Permission denied
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base .\error.jl:176
  [2] systemerror
    @ .\error.jl:175 [inlined]
  [3] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Bool, append::Nothing)
    @ Base .\iostream.jl:295
  [4] open
    @ .\iostream.jl:277 [inlined]
  [5] open(fname::String, mode::String; lock::Bool)
    @ Base .\iostream.jl:358
  [6] open(fname::String, mode::String)
    @ Base .\iostream.jl:357
  [7] open(::IJulia.var"#26#28"{IJulia.Kernel}, ::String, ::Vararg{String}; kwargs::@Kwargs{})
    @ Base .\io.jl:408
  [8] open
    @ .\io.jl:407 [inlined]
  [9] init(args::Vector{String}, kernel::IJulia.Kernel, profile::Nothing)
    @ IJulia C:\Users\m129319\.julia\packages\IJulia\GFGaR\src\init.jl:81
 [10] init
    @ C:\Users\m129319\.julia\packages\IJulia\GFGaR\src\init.jl:67 [inlined]
 [11] run_kernel()
    @ IJulia C:\Users\m129319\.julia\packages\IJulia\GFGaR\src\kernel.jl:11
 [12] top-level scope
    @ REPL[2]:1

```

I found the `Windows\System32` fishy and found a thread where it’s mentioned this is not the correct behaviour, but no real solution. A bit more reading suggested to me it has something to do with environments etc. I finally changed

`"--project=@.",`

in kernel.json to

`"--project=C:\\Users\\XXmyusernameXX\\.julia\\environments\\v1.11",`

(with the correct username of course) and now everything is working. However, I find this to be a bit of a hack and not so nice. Interestingly, when I open a fresh repl and check the project everything seems fine?

```julia-auto
julia> Base.active_project()
"C:\\Users\\m129319\\.julia\\environments\\v1.11\\Project.toml"

```

I think there’s some kind of issue here but I’m not sure where to open a respective issue. IJulia? jupyter?
