Skip to content
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

[BUG] #4859

Closed
ivanuricardo opened this issue Dec 31, 2023 · 1 comment · Fixed by #4870
Closed

[BUG] #4859

ivanuricardo opened this issue Dec 31, 2023 · 1 comment · Fixed by #4870
Labels

Comments

@ivanuricardo
Copy link

Describe the bug
I have recently upgraded to Julia 1.10 and installed Plots 1.39.0 along with PlotlyJS 0.18.11. Then running
JULIA_PKG_PRECOMPILE_AUTO=0 julia -e 'import Plots; Plots.set_default_backend!(:plotlyjs)'
gives me the error

LoadError: Creating a new global in closed module `Main` (`PlotlyJS`) breaks incremental compilation because the side effects will not be permanent.

I then can not change back to the default gr() backend and I am unable to use the Plots package for anything.
On the other hand, running

using PlotlyJS
plot(randn(10))

does run fine with no errors, and I can plot with this.

Version info
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 16 × 13th Gen Intel(R) Core(TM) i5-1340P
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, goldmont)
Threads: 1 on 16 virtual cores

Status ~/.julia/environments/v1.10/Project.toml
⌅ [28b8d3ca] GR v0.72.10
[23fbe1c1] Latexify v0.16.1
[f0f68f2c] PlotlyJS v0.18.11
[91a5bcdd] Plots v1.39.0
[49802e3a] ProgressBars v1.5.

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default)
pythonplot
plotlyjs x
pgfplotsx
unicodeplots
inspectdr
gaston
@BioTurboNick
Copy link
Member

Related to #4865. Workaround is to use GR as default but switch after loading, as you saw.

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

Successfully merging a pull request may close this issue.

2 participants