Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

plotlyjs() throws and error #440

Open
HenriLaurie opened this issue Aug 25, 2016 · 11 comments
Open

plotlyjs() throws and error #440

HenriLaurie opened this issue Aug 25, 2016 · 11 comments

Comments

@HenriLaurie
Copy link

The following code fails in JuliaBox (even after updating, see screenshot)

using Plots

pyplot()

plotlyjs()
x = collect(1:5)
scatter(x,x)
screenshot from 2016-08-25 07 27 14

@ViralBShah
Copy link
Contributor

Cc @spencerlyon2

@sglyon
Copy link
Contributor

sglyon commented Aug 25, 2016

What happens when you try updating PlotlyJS to version 0.3.3 before trying to plot?

@HenriLaurie
Copy link
Author

HenriLaurie commented Aug 25, 2016

I still get errors (cut and pasted below).
BTW, although the 4.0 button
on Account page listed PlotlyJS as v 0.3.2, according Pkg.status() the
installed version
of PlotlyJS is 0.3.3. If so, then presumably the test configuration
has not changed.

ERROR: LoadError: UndefVarError: Colors not defined
in stale_cachefile at loading.jl:459
in recompile_stale at loading.jl:474
in _require_from_serialized at loading.jl:83
in require at ./loading.jl:241
in include at ./boot.jl:261
in include_from_node1 at ./loading.jl:320
[inlined code] from none:2
in anonymous at no file:0
in process_options at ./client.jl:257
in _start at ./client.jl:378
while loading /opt/julia_packages/.julia/v0.4/Plots/src/Plots.jl, in
expression starting on line 13

LoadError: Failed to precompile Plots to /home/juser/.julia/lib/v0.4/Plots.ji
while loading In[4], in expression starting on line 1

in error at ./error.jl:21
in compilecache at loading.jl:400
in recompile_stale at loading.jl:476
in _require_from_serialized at loading.jl:83
in _require_from_serialized at ./loading.jl:109
in require at ./loading.jl:235

On 25 August 2016 at 11:52, Spencer Lyon [email protected] wrote:

What happens when you try updating PlotlyJS to version 0.3.3 before
trying to plot?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#440 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUQTB9TXjxUhM3Mys4EowbsZrqUiZZO-ks5qjWXogaJpZM4Js3qp
.

@sglyon
Copy link
Contributor

sglyon commented Aug 25, 2016

PlotlyJS.jl version 0.3.2 will not load in the notebook. So, if you have 0.3.1 or 0.3.3 you should be good to go.

It looks like the current issue is that the Colors.jl package isn't installed?

@HenriLaurie
Copy link
Author

Hm. Will retry by loading Plots first, that should load Colors. As I say, although the info says 0.3.2, Pkg.status() suggests that is incorrect.

@HenriLaurie
Copy link
Author

works now ... thanks!

@sglyon
Copy link
Contributor

sglyon commented Aug 25, 2016

Awesome, thanks for reporting back!

@HenriLaurie
Copy link
Author

Sure, thanks for all the work!
... now i notice the figure is gone when the notebook is re-opened. It can be replotted, of course, but I am used to having the figure saved inline as JSON object, so it is puzzling that it disappears. Is this the design behaviour?

@sglyon
Copy link
Contributor

sglyon commented Aug 25, 2016

It sounds like the plotly.js javascript library isn't getting reloaded when you reopen the notebook.

That doesn't happen for me locally. I'm not sure why it would be happening within Juliabox

@HenriLaurie
Copy link
Author

From my point of view, it is not serious enough to open an issue. Thanks again!

@ViralBShah ViralBShah reopened this Aug 25, 2016
@ViralBShah
Copy link
Contributor

Reopening it here until we figure out a reliable fix for JuliaBox.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants