# Add IJulia Error

**URL:** <https://discourse.julialang.org/t/add-ijulia-error/18316>\
**Category:** New to Julia\
**Created:** [December 5, 2018, 12:44pm UTC](https://discourse.julialang.org/t/add-ijulia-error/18316 "2018-12-05T12:44:53Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [December 5, 2018, 12:44pm UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/1 "2018-12-05T12:44:53Z")

</div>

I try to install Ijulia for several days, and this is the error I receive.  
what to do to achieve it?  
Gracias  
**_Note:_** I have Anaconda3 and Python 3.7 installed!

```julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.0.2 (2018-11-08)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(v1.0) pkg> add IJulia
  Updating registry at `C:\Users\hermesr\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
 Installed GenericSVD ─ v0.2.1
 Installed LazyArrays ─ v0.5.0
 Installed PDMats ───── v0.9.6
 Installed IJulia ───── v1.14.1
 Installed CodeTools ── v0.6.3
  Updating `C:\Users\hermesr\.julia\environments\v1.0\Project.toml`
  [7073ff75] + IJulia v1.14.1
  Updating `C:\Users\hermesr\.julia\environments\v1.0\Manifest.toml`
  [53a63b46] ↑ CodeTools v0.6.2 ? v0.6.3
  [01680d73] ↑ GenericSVD v0.2.0 ? v0.2.1
  [7073ff75] + IJulia v1.14.1
  [5078a376] ↑ LazyArrays v0.4.0 ? v0.5.0
  [90014a1f] ↑ PDMats v0.9.5 ? v0.9.6
  [b85f4697] + SoftGlobalScope v1.0.7
  [c2297ded] + ZMQ v1.0.0
  Building IJulia → `C:\Users\hermesr\.julia\packages\IJulia\DL02A\deps\build.lo
g`
┌ Error: Error building `IJulia`:
│ Solving environment: ...working... done
│
│ # All requested packages already installed.
│
│ Error executing Jupyter command 'kernelspec': [Errno 'jupyter-kernelspec' not
found] 2
│ [InstallKernelSpec] Removing existing kernelspec in C:\Users\hermesr\AppData\R
oaming\jupyter\kernels\julia-1.0
│ [WinError 5] Access is denied: 'C:\\Users\\hermesr\\AppData\\Roaming\\jupyter\
\kernels\\julia-1.0\\logo-32x32.png'
│ [ Info: Installing Jupyter via the Conda package.
│ [ Info: Running `conda install -y jupyter` in root environment
│ [ Info: Found Jupyter version 4.4.0: C:\Users\hermesr\.julia\conda\3\Scripts\j
upyter
│ [ Info: Installing Julia kernelspec julia-1.0
│ ERROR: LoadError: failed process: Process(`'C:\Users\hermesr\.julia\conda\3\py
thon.exe' 'C:\Users\hermesr\.julia\conda\3\Scripts\jupyter-kernelspec-script.py'
 install --replace --user 'C:\Users\hermesr\AppData\Local\Temp\julia-1.0'`, Proc
essExited(1)) [1]
│ Stacktrace:
│ [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at .\error.j
l:42
│ [2] pipeline_error at .\process.jl:705 [inlined]
│ [3] #run#504(::Bool, ::Function, ::Cmd) at .\process.jl:663
│ [4] run at .\process.jl:661 [inlined]
│ [5] #installkernel#4(::String, ::Function, ::String) at C:\Users\hermesr\.jul
ia\packages\IJulia\DL02A\deps\kspec.jl:85
│ [6] installkernel(::String) at C:\Users\hermesr\.julia\packages\IJulia\DL02A\
deps\kspec.jl:36
│ [7] top-level scope at logging.jl:308
│ [8] top-level scope at logging.jl:307
│ [9] top-level scope at C:\Users\hermesr\.julia\packages\IJulia\DL02A\deps\bui
ld.jl:41
│ [10] include at .\boot.jl:317 [inlined]
│ [11] include_relative(::Module, ::String) at .\loading.jl:1044
│ [12] include(::Module, ::String) at .\sysimg.jl:29
│ [13] include(::String) at .\client.jl:392
│ [14] top-level scope at none:0
│ in expression starting at C:\Users\hermesr\.julia\packages\IJulia\DL02A\deps\b
uild.jl:9
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win32\bu
ild\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1097

(v1.0) pkg>

```

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [December 5, 2018, 1:09pm UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/2 "2018-12-05T13:09:28Z")

</div>

Might be some clues here:

> [@Error while trying to add IJulia package to Julia](https://discourse.julialang.org/t/error-while-trying-to-add-ijulia-package-to-julia/15362):
>
> Error executing Jupyter command ‘kernelspec’: [Errno ‘jupyter-kernelspec’ not found] 2 │ ImportError: DLL load failed: The specified module could not be found. ERROR: LoadError: failed process: Process('C:\Users\jaiki\.julia\packages\Conda\m7vem\deps\usr\python.exe' 'C:\Users\jaiki\.julia\packages\Conda\m7vem\deps\usr\Scripts\jupyter-kernelspec-script.py' install --replace --user 'C:\Users\jaiki\AppData\Local\Temp\julia-1.0', ProcessExited(1)) [1]

> [@Trouble installing IJulia in fresh Julia 1.0](https://discourse.julialang.org/t/trouble-installing-ijulia-in-fresh-julia-1-0/15244):
>
> [Update: This is fixed in a recent update. Updating packages and re-building fixes the Windows-vs-Conda problem that was behind the IJulia failure for me.] I just downloaded Julia v0.7 and tried to install IJulia (literally the first thing I did), following the instructions here: It failed. I tried again with Julia v1.0, and it failed in the same way. Does anyone know what’s going on here? I’m on Windows 10. I have previous versions of Julia installed, with IJulia. I’m just leaving everythi…

---

<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:** [December 5, 2018, 1:10pm UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/3 "2018-12-05T13:10:20Z")

</div>

> [@HerAdri](#):
>
> `Access is denied: 'C:\\Users\\hermesr\\AppData\\Roaming\\jupyter\ \kernels\\julia-1.0\\logo-32x32.png'`

Sounds like the `C:\Users\hermesr\AppData\Roaming\jupyter\\kernels` directory doesn’t have write permissions for you for some reason?

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [December 5, 2018, 1:39pm UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/4 "2018-12-05T13:39:12Z")

</div>

I’m also getting the same error on a clean AppVeyor build: [AppVeyor](https://ci.appveyor.com/project/rdeits/dynamicwalking2018-jl/builds/20393318/job/8avwvbnj67shd7sf#L172)

---

<div class="post-metadata">

**Author:** ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Post date:** [December 5, 2018, 4:09pm UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/5 "2018-12-05T16:09:41Z")

</div>

I have faced the same issue sometime back. I deleted the files in the folder and rebuilt IJulia and it worked.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [December 5, 2018, 4:17pm UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/6 "2018-12-05T16:17:26Z")

</div>

> [@Ajaychat3](#):
>
> I deleted the files in the folder

Please, argue a little more.  
What files do you delete?  
Within what folder?  
Gracias

---

<div class="post-metadata">

**Author:** ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Post date:** [December 5, 2018, 4:36pm UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/7 "2018-12-05T16:36:27Z")

</div>

I deleted this Jupyter folder and then rebuilt IJulia.

'C:\Users\hermesr\AppData\Roaming\jupyter\

---

<div class="post-metadata">

**Author:** ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Post date:** [December 5, 2018, 4:41pm UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/8 "2018-12-05T16:41:13Z")

</div>

You can also check if you have the write permission to this folder. As mentioned by @stevengj, the issue occurs if Julia is not able to update files in the specified folders shown in the error log.

---

<div class="post-metadata">

**Author:** ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Post date:** [December 6, 2018, 3:39am UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/9 "2018-12-06T03:39:45Z")

</div>

Removing Julia-1.0 folder under this structure and then rebuilding IJulia also works.

> [@stevengj](#):
>
> 'C:\Users\hermesr\AppData\Roaming\jupyter\ \kernels\julia-1.0\

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [December 6, 2018, 5:48am UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/10 "2018-12-06T05:48:41Z")

</div>

> [@Ajaychat3](#):
>
> You can also check if you have the write permission to this folder.

How do I perform this check?

---

<div class="post-metadata">

**Author:** ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Post date:** [December 6, 2018, 6:05am UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/11 "2018-12-06T06:05:02Z")

</div>

For Windows 10.

Select the folder and do right click on the mouse. A context menu appear. Look at the Read-only check box in General Tab. If it is un-ticked, it is not read-only. Else it could be partial or total read-only. Go to Security Tab and look at the various permissions to find out.

If you have proper rights on the system, you can try un-checking the box in general tab and click apply.  
Hope it will solve the issue of write permission.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [December 6, 2018, 11:00am UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/12 "2018-12-06T11:00:20Z")

</div>

Thank you very much, IJulia is already running on my PC !!!  
I have the following file:  
C: / Users / hermesr / Documents / Julia software / Julia Notebooks / IJulia Preview.ipynb  
As I do to execute it, what differences are there between IJulia.load () and notebook ()?

---

<div class="post-metadata">

**Author:** ![Ajaychat3](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Post date:** [December 6, 2018, 11:48am UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/13 "2018-12-06T11:48:33Z")

</div>

I start jupyter notebook from windows cmd terminal by using the command ‘jupyter notebook’.

AFAIK this procedure is similar to starting jupyter notebook using ‘notebook()’ command from Julia REPL. And for this to work you need to issue ‘using IJulia’ command on the Julia REPL before the notebook() command.

---

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [December 6, 2018, 12:42pm UTC](https://discourse.julialang.org/t/add-ijulia-error/18316/14 "2018-12-06T12:42:10Z")

</div>

in this way I was able to access the ipynb files in the desired folder

```julia
julia>using IJulia
julia>notebook(dir="C:/Users/hermesr/Documents/Julia software/Julia Notebooks")

```
