# Problems with IJulia

**URL:** https://discourse.julialang.org/t/problems-with-ijulia/29617
**Category:** General Usage
**Tags:** question
**Created:** [October 7, 2019, 7:34pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617 "2019-10-07T19:34:31Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)
#### Post date: [October 7, 2019, 7:34pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/1 "2019-10-07T19:34:31Z")

</div>

Hi I am using Julia 1.2.  
I have a pre-installed version of anaconda -

So before building IJulia I do the following

```julia
ENV["PYTHON"]="C:\\ProgramData\\Anaconda3\\python"
ENV["JUPYTER"]="C:\\ProgramData\\Anaconda3\\Scripts\\jupyter"

```

From hwat I understand this should direct Julia to fins Jupyter and Python ins the desired directories however -

```julia
using IJulia
IJulia.notebook()

```

returns

```julia
IJulia.notebook()
install Jupyter via Conda, y/n? [y]: n

```

I chose no given that I already have working installations, however when I chose y installation failed due to qt package failure.

Any advice?

Thanks,

A

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [October 7, 2019, 11:42pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/2 "2019-10-07T23:42:11Z")

</div>

> [@alewolf](#):
>
> `ENV["JUPYTER"]="C:\\ProgramData\\Anaconda3\\Scripts\\jupyter"`

Don’t you need `.exe` at the end?

A simple test to ensure that you have set this correctly (before running `pkg> build IJulia`) is to check that

```julia
run(`$(ENV["JUPYTER"]) --version`)

```

runs successfully and prints out your Jupyter installation versions.

> [@alewolf](#):
>
> however when I chose y installation failed due to qt package failure.

That’s odd, can you file an issue at Conda.jl with the exact error?

---

<div class="post-metadata">

### Author: ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)
#### Post date: [October 7, 2019, 11:50pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/3 "2019-10-07T23:50:21Z")

</div>

Thanks,

I will file the error next time I try it.

The .exe doesn’t make any difference.

Thanks for the quick reply.

I’ll try the command you suggested as soon as I get back to work.

Thanks again

A

---

<div class="post-metadata">

### Author: ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)
#### Post date: [October 8, 2019, 5:33pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/4 "2019-10-08T17:33:07Z")

</div>

> [@stevengj](#):
>
> run(`$(ENV["JUPYTER"]) --version`)

I ran the command as you suggested -  
I got

jupyter core : 4.5.0  
jupyter-notebook : 6.0.0  
qtconsole : 4.5.1  
ipython : 7.6.1  
ipykernel : 5.1.1  
jupyter client : 5.3.1  
jupyter lab : 1.0.2  
nbconvert : 5.5.0  
ipywidgets : 7.5.0  
nbformat : 4.4.0  
traitlets : 4.3.2  
Process(`'C:\ProgramData\Anaconda3\Scripts\jupyter' --version`, ProcessExited(0))

The command did not work until I re-inputed  
ENV[“JUPYTER”]=“C:\ProgramData\Anaconda3\Scripts\jupyter”  
It seems that julia forgot I alreayd have set up ENV[“JUPYTER”] after i turned it off

Anyway, after checking things were ok I did:

```julia
] build IJulia
using IJulia
notebook()

```

and got  
install Jupyter via Conda, y/n? [y]: n

any idea what could be going on?

Thanks,

A

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [October 8, 2019, 11:18pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/5 "2019-10-08T23:18:40Z")

</div>

> [@alewolf](#):
>
> It seems that julia forgot I alreayd have set up `ENV[“JUPYTER”]` after i turned it off

Environment variables do not persist across sessions. However, once you `build IJulia`, it should subsequently “remember” your `JUPYTER` setting. If you do

```julia
using IJulia
IJulia.JUPYTER

```

it should be the `jupyter` path that you specified if things worked correctly.

However, I suspect that you need to add the `.exe` suffix as I suggested (before running `build`), because the [build script checks](https://github.com/JuliaLang/IJulia.jl/blob/f6ad59bd71675682ddac4ec831a2cc783a8e5392/deps/build.jl#L19-L23) that `isexecutable(ENV[“JUPYTER”])` returns `true` to ensure that the path is valid. (If this check failed, it would have printed out a warning during `build IJulia` … hopefully you aren’t ignoring warning messages?)

---

<div class="post-metadata">

### Author: ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)
#### Post date: [October 8, 2019, 11:31pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/6 "2019-10-08T23:31:41Z")

</div>

No warning messages, but I’ll try to add .exe

Thanks

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [October 9, 2019, 1:07am UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/7 "2019-10-09T01:07:20Z")

</div>

why are you expecting a warning msg here? you’re just adding a string to a dict.

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [October 9, 2019, 1:33am UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/8 "2019-10-09T01:33:14Z")

</div>

> [@jling](#):
>
> why are you expecting a warning msg here?

From this line: [IJulia.jl/deps/build.jl at f6ad59bd71675682ddac4ec831a2cc783a8e5392 · JuliaLang/IJulia.jl · GitHub](https://github.com/JuliaLang/IJulia.jl/blob/f6ad59bd71675682ddac4ec831a2cc783a8e5392/deps/build.jl#L21)

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [October 9, 2019, 2:45am UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/9 "2019-10-09T02:45:47Z")

</div>

I see. My bad, I assumed this is a runtime thing.

---

<div class="post-metadata">

### Author: ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)
#### Post date: [October 9, 2019, 4:35pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/10 "2019-10-09T16:35:47Z")

</div>

Hi I tried to add the .exe after. still same response.  
The isuse persists even after I uninstalled Anaconda and Julia and reinstalled them.  
Any ideas or should I move to an Anaconda thread?  
Thanks,

Ale

```julia
julia> ENV["JUPYTER"]="C:\\ProgramData\\Anaconda3\\Scripts\\jupyter.exe"
"C:\\ProgramData\\Anaconda3\\Scripts\\jupyter.exe"

(v1.2) pkg> build IJulia
  Building Conda ─→ `C:\Users\awolf-yadlin\.juliapro\JuliaPro_v1.2.0-1\packages\Conda\kLXeC\deps\build.log`
  Building ZMQ ───→ `C:\Users\awolf-yadlin\.juliapro\JuliaPro_v1.2.0-1\packages\ZMQ\ABGOx\deps\build.log`
  Building IJulia → `C:\Users\awolf-yadlin\.juliapro\JuliaPro_v1.2.0-1\packages\IJulia\cwvsj\deps\build.log`

julia> run(`$(ENV["JUPYTER"]) --version`)
jupyter core : 4.5.0
jupyter-notebook : 6.0.0
qtconsole : 4.5.1
ipython : 7.6.1
ipykernel : 5.1.1
jupyter client : 5.3.1
jupyter lab : 1.0.2
nbconvert : 5.5.0
ipywidgets : 7.5.0
nbformat : 4.4.0
traitlets : 4.3.2
Process(`'C:\ProgramData\Anaconda3\Scripts\jupyter.exe' --version`, ProcessExited(0))

julia> notebook()
install Jupyter via Conda, y/n? [y]: n
ERROR: C:\Users\ALE-~1\AppData\Local\Temp\Scripts\jupyter.exe is not installed, cannot run notebook

```

---

<div class="post-metadata">

### Author: ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)
#### Post date: [October 9, 2019, 5:05pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/11 "2019-10-09T17:05:35Z")

</div>

I don’t know why this doesn’t work, but if you just let Julia install its own Conda, then does your previous installation still find the Julia kernel? Last time I tried this I believe it did.

---

<div class="post-metadata">

### Author: ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)
#### Post date: [October 9, 2019, 5:08pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/12 "2019-10-09T17:08:05Z")

</div>

> [@dpsanders](#):
>
> don’t know why this doesn’t work, but if you just let Julia install its own Conda, then does your previous installation still find the Julia kernel? Last time I tried this I believe it did.

hi when I let it install it own conda it crashes and doesn’t finish install. I’ll try once more so I can copy the error.  
Thanks,

Ale

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [October 9, 2019, 7:12pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/13 "2019-10-09T19:12:55Z")

</div>

May I also ask what is your Windows build number?

---

<div class="post-metadata">

### Author: ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)
#### Post date: [October 9, 2019, 10:34pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/14 "2019-10-09T22:34:01Z")

</div>

Of course  
version 1709 OS build 16299.1387

thanks,  
A

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [October 10, 2019, 4:55am UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/15 "2019-10-10T04:55:08Z")

</div>

What is `IJulia.JUPYTER`? Does the build.log file contain any more info?

---

<div class="post-metadata">

### Author: ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)
#### Post date: [October 10, 2019, 4:42pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/16 "2019-10-10T16:42:23Z")

</div>

when I do IJulia.JUPYTER I get

“C:\ProgramData\Anaconda3\Scripts\jupyter.exe”

I only found Project Files in IJulia not logs the logs in Julia don’t show anything strange just the environment used. this is the project file

name = “IJulia”  
uuid = “7073ff75-c697-5162-941a-fcdaad2a7d2a”  
version = “1.20.0”

[deps]  
Base64 = “2a0f44e3-6c83-55bd-87e4-b1978d98bd5f”  
Conda = “8f4d0f93-b110-5947-807f-2305c1781a2d”  
Dates = “ade2ca70-3891-5945-98fb-dc099432e06a”  
InteractiveUtils = “b77e0a4c-d291-57a0-90e8-8db25a27a240”  
JSON = “682c06a0-de6a-54ab-a142-c8b1cf79cde6”  
Markdown = “d6f4376e-aef5-505a-96c1-9c027394607a”  
MbedTLS = “739be429-bea8-5141-9913-cc70e7f3736d”  
Pkg = “44cfe95a-1eb2-52ea-b672-e2afdf69b78f”  
Printf = “de0858da-6303-5e67-8744-51eddeeeb8d7”  
REPL = “3fa0cd96-eef1-5676-8a61-b3b8758bbffb”  
Random = “9a3f8284-a2c9-5f02-9a11-845980a1fd5c”  
SoftGlobalScope = “b85f4697-e234-5449-a836-ec8e2f98b302”  
Test = “8dfed614-e22c-5e08-85e1-65c5234f0b40”  
UUIDs = “cf7118a7-6976-5b1a-9a39-7adc72f591a4”  
ZMQ = “c2297ded-f4af-51ae-bb23-16f91089e4e1”

[compat]  
Conda = “≥ 0.1.5”  
JSON = “≥ 0.17.0”  
MbedTLS = “≥ 0.4.3”  
ZMQ = “≥ 1.0.0”  
julia = “≥ 0.7.0”

---

<div class="post-metadata">

### Author: ![alewolf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alewolf/32/9000_2.png) [@alewolf](https://discourse.julialang.org/u/alewolf)
#### Post date: [October 10, 2019, 9:10pm UTC](https://discourse.julialang.org/t/problems-with-ijulia/29617/17 "2019-10-10T21:10:33Z")

</div>

So something weird happened  
I did a global upadate of my Julia and packages. I think My IJulia upgraded to version 1.2.0 and that made the difference from 1.1.9, not sure why.  
Thanks for walking through this with me, and sorry to have wasted your time - I am still curious what the difference might have been be and if it was an IJulia issue or related to other packages.

Thanks so much for all your help and patience!
