Wednesday 13 January 2016

Julia: Installing new packages


Before installing new package, it is better to update all the existing packages using ‘Pkg.update()’ command.
julia> Pkg.update()
INFO: Updating METADATA...
INFO: Computing changes...
INFO: No packages to install, update or remove

Use the command ‘Pkg.add("PackageName")’  to install new package. ‘Pkg.add("Winston")’ install the package Winston.

Load and use a package
‘using’ command is used to load a package.
julia>using Winston
julia>plot(rand(100))

Above statement draws following graph.





Previous                                                 Next                                                 Home

No comments:

Post a Comment