-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when plotting in IJulia notebooks #46
Comments
Hi @psilva07 a couple things:
|
Thanks @tbreloff . I did using Plots; plotlyjs()
p = plot(rand(10), c=:red, m=(20,:green))
[Plots.jl] Initializing backend: plotlyjs
INFO: Recompiling stale cache file /Users/pedrosilva/.julia/lib/v0.4/Blink.ji for module Blink.
Plotly javascript loaded.
LoadError: MethodError: `colon` has no method matching colon(::JSON.State{false})
Closest candidates are:
colon(::Any, !Matched::Lazy.List)
colon{T}(::T, !Matched::T)
colon(::Any, !Matched::Any, !Matched::Lazy.List)
...
while loading In[2], in expression starting on line 1
in _print at /Users/pedrosilva/.julia/v0.4/PlotlyJS/src/json.jl:9
in _print at /Users/pedrosilva/.julia/v0.4/JSON/src/JSON.jl:136
in print at /Users/pedrosilva/.julia/v0.4/JSON/src/JSON.jl:204
in sprint at iostream.jl:206
in json at /Users/pedrosilva/.julia/v0.4/JSON/src/JSON.jl:217
in map at tuple.jl:60
in _call_plotlyjs at /Users/pedrosilva/.julia/v0.4/PlotlyJS/src/displays/ijulia.jl:140
in addtraces! at /Users/pedrosilva/.julia/v0.4/PlotlyJS/src/displays/ijulia.jl:161
in addtraces! at /Users/pedrosilva/.julia/v0.4/PlotlyJS/src/display.jl:78
in _series_added at /Users/pedrosilva/.julia/v0.4/Plots/src/backends/plotlyjs.jl:38
in _apply_series_recipe at /Users/pedrosilva/.julia/v0.4/Plots/src/plot.jl:204
in _plot! at /Users/pedrosilva/.julia/v0.4/Plots/src/plot.jl:471 Thanks for pointing me out on the right direction though, I will keep looking. |
I saw JSON just tagged a new version... I wonder if it broke something in PlotlyJS? Did you test both |
I'm getting a different error now with [Plots.jl] Initializing backend: plotly
WARNING: Couldn't initialize plotly. (might need to install it?)
LoadError: SystemError: opening file /Users/pedrosilva/.julia/v0.4/Plots/deps/plotly-latest.min.js: No such file or directory
while loading In[3], in expression starting on line 1 |
|
Ow yes, I forgot that, newbie mistake. It works with |
According to JuliaIO/JSON.jl@bd1eb8a Possibly fixes JuliaPlots#46
I can confirm the problem (Ubuntu 14.04, 64-bit, official Julia 0.4.5 build, fresh pkg directory). #48 fixes the issue for me. |
I can confirm that the new version of JSON.jl breaks PlotlyJS. I downgraded to v0.5.1 and it worked again. |
Thank you all for hunting this down. I'll merge #48 today and tag a new release on Metadata. |
I have a fresh install of Julia in a Mac and I have been trying to use the plotly library in the IJulia notebooks but it is not working. The issue is similar to https://github.com/Keno/GraphViz.jl/issues/11 but I couldn't find a solution.
I didn't install Jupyter beforehand so I'm using Miniconda. I got the plots working on the REPL with Blink but so far nothing on the notebooks. Here is what I have:
The text was updated successfully, but these errors were encountered: