How to use packages in Julia Studio

I cannot get the package system to work in Julia Studio. For example, if I want to build a simple graph, I tried double-clicking the Winston package, which seems to be installed from the Git repo, and then:

using Winston
plot([1 2 3],[3 2 6])

But I get the error:

could not open file /Applications/JuliaStudio.app/Contents/Resources/juliaengine/Winston.jl

What does Julia look like in the wrong directory. How do I configure Julia Studio to work correctly with packages?

Answer to Adam: thank you, unfortunately, it seems there are a few problems. When I try to remove / add a Winston package, I get a message like:

julia> Pkg.rm("Winston")
ERROR: Unknown dependency for ODBC: julia
in dependencies at pkg/metadata.jl:156
in ReqsStruct at pkg/resolve.jl:65
in resolve at pkg/resolve.jl:1162
in _resolve at pkg.jl:230
in anonymous at no file:163
in cd at file.jl:26
in cd_pkgdir at pkg.jl:34
in rm at pkg.jl:141
in rm at pkg.jl:165

I will spend some more time on this and try to understand what is happening. I will send an update for completeness if I find it somewhere.

UPDATE Julia Studio 0.4.4 . , , .

+5
2

, : https://github.com/forio/julia-studio/issues/83

Winston , . Julia Studio .

:

:

/Applications/JuliaStudio.app/julia/bin/julia-release-readline

Pkg.rm("Winston")
Pkg.add("Winston")

Julia Studio.

Winston .

+5

, :

  • $HOME/.julia ( )
  • /

    Last login: Sat Jul 27 02:58:06 on ttys001
    ~  ᐅ /Applications/JuliaStudio.app/julia/bin/julia-release-readline
               _
       _       _ _(_)_     |  A fresh approach to technical computing
      (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
       _ _   _| |_  __ _   |  Type "help()" to list help topics
      | | | | | | |/ _` |  |
      | | |_| | | | (_| |  |  Version 0.1.2+111981303.ra703.dirty
     _/ |\__'_|_|_|\__'_|  |  Commit a703335d02 (2013-03-10 22:34:09)*
    |__/                   |
    
    julia> 
    
  • julia> Pkg.add("Winston")
    MESSAGE: Auto-initializing default package repository /Users/elyase/.julia.
               ...
    

!

+2

All Articles