PlotlyJS.jl icon indicating copy to clipboard operation
PlotlyJS.jl copied to clipboard

Accessing scope.id is deprecated

Open DhruvaSambrani opened this issue 5 years ago • 6 comments

Describe the bug Following warning is thrown when plot() is called with Plots on Jupyter notebook. Warning: Accessing scope.id is deprecated; use scopeid(scope) instead. │ caller = ip:0x0 └ @ Core :-1

Version info

Please provide the following:

  1. output of julia command versioninfo()

Julia Version 1.1.1 Commit 55e36cc308 (2019-05-16 04:10 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

  1. Output running the following in Julia 0.7 or greater: using Pkg; pkg"status" (if you are on Julia 0.6 or earlier run Pkg.status())

Status C:\Users\Dhruva Sambrani\.julia\environments\v1.1\Project.toml [7073ff75] IJulia v1.18.1 [47be7bcc] ORCA v0.2.1 [f0f68f2c] PlotlyJS v0.12.4 [91a5bcdd] Plots v0.25.1 [0f1e0344] WebIO v0.8.4

DhruvaSambrani avatar Jun 07 '19 17:06 DhruvaSambrani

Can you please have a solution for this? I am trying to work with a julia notebook and I get this warning. The plot doesn't work at all. I am new to julia and all these terms are confusing me.

using Plots

plotlyjs() norm1 = randn(1000); histogram(norm1, bins = 10, label = "Standard normal distribution", title = "Histogram") After running the last function I get the same warning. I need help for this.

DrakenWan avatar Jun 27 '19 09:06 DrakenWan

@DrakenWan If there's no output, refer to #278 . Add your info there too.

DhruvaSambrani avatar Jun 27 '19 09:06 DhruvaSambrani

@DhruvaSambrani Has there been any update no getting this resolved? It seems like it would be a straightforward change (scope.id to scopeid). Thanks!

haydenfree avatar Jul 29 '19 19:07 haydenfree

This actually isn't happening in this project. Not sure where it is happening, but I searched the code here and can't find scope.id

sglyon avatar Jul 29 '19 19:07 sglyon

I'm using Blink.jl and HTTP.jl and get the same error. I've searched both of those projects as well as my own project and cannot find where it is happening.

haydenfree avatar Jul 29 '19 20:07 haydenfree

quite possibly it's coming from here https://github.com/JuliaGizmos/JSExpr.jl/blob/master/src/JSExpr.jl#L67. casually changing scope.id to scopeid(scope) does not fix the problem though.

asbisen avatar Aug 19 '19 07:08 asbisen