# Problem adding IJulia as a package dependency

**URL:** <https://discourse.julialang.org/t/problem-adding-ijulia-as-a-package-dependency/104841>\
**Category:** General Usage\
**Created:** [October 11, 2023, 10:24am UTC](https://discourse.julialang.org/t/problem-adding-ijulia-as-a-package-dependency/104841 "2023-10-11T10:24:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno\_Amorim](https://avatars.discourse-cdn.com/v4/letter/b/f6c823/32.png) [@Bruno\_Amorim](https://discourse.julialang.org/u/Bruno_Amorim)\
**Post date:** [October 11, 2023, 10:24am UTC](https://discourse.julialang.org/t/problem-adding-ijulia-as-a-package-dependency/104841/1 "2023-10-11T10:24:11Z")

</div>

I have writen a small script ([GitHub - BacAmorim/ijuliaup: Simple script to help remove/add IJulia kernels after updating Julia.](https://github.com/BacAmorim/ijuliaup)) that provides a convient way of removing and adding new IJulia kernels (with multiple threads) after Julia is updated.

I am trying to convert this script into a package. The script installs IJulia, but with a package I should not need to do this as I can just add IJulia as a dependency. In the package folder, I activate the environment and after that I do `Pkg.add("IJulia")`.

However, when I then try to use the package I get the following error:

```julia
ERROR: LoadError: ArgumentError: Package IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

```

`instantiate`-ing does not solve the problem. IJulia also appears in the Project.toml file. I only seem to get this problem when adding IJulia as a dependency.  
Anyone knows what might be going on?
