Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Update a Dependency in a Julia Package Under Development

Tags:

package

julia

I am developing a Julia package that I have added via dev <github url>. I can enter Pkg mode in the terminal via ] activate and get the prompt I want.

Suppose I want to change the version of Flux used with the package from v0.9.0 to v0.10.0. How do I go about doing that?

like image 980
Mageek Avatar asked Jan 10 '20 06:01

Mageek


People also ask

How do I add multiple packages to Julia?

You can use Pkg to install multiple packages (https://github.com/JuliaLang/julia/issues/19591). For instance: Pkg. add(["Combinatorics", "TaylorSeries"]) . If your list sits in a text file, you can just load it and pass it to Pkg.

Where are Julia packages stored?

The list of registered Julia packages can be found at http://pkg.julialang.org. All package manager commands are found in the Pkg module, included in Julia's Base install.

How do I check my Julia package version?

Use the Pkg REPL notation: ] status # Show every installed package version ] status pkgName # Show the specific version of the package ] status pkgName1 pkgName2 # Show the named packages. You can continue the list.


Video Answer


1 Answers

You can use pkg> update Flux or pkg> add [email protected] in the same environment where you have added the package you are developing.

like image 147
fredrikekre Avatar answered Oct 17 '22 11:10

fredrikekre