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

PlotlyJS.Plot does not work in Jupyter Notebook 7.3.1 #493

Open
empet opened this issue Dec 11, 2024 · 1 comment
Open

PlotlyJS.Plot does not work in Jupyter Notebook 7.3.1 #493

empet opened this issue Dec 11, 2024 · 1 comment

Comments

@empet
Copy link

empet commented Dec 11, 2024

I installed Julia 1.11.2, and Jupyter Notebook 7.3.1. While this simple code

Plot(scatter(x=[1.0, 2.0, 3.0],  y=[0.0, 1.5, 0.0], mode="lines", 
                   line_width=3),
        Layout(width=500, height=400))

works when run in REPL, in Jupyter Notebook it throws the error:

MethodError: no method matching resize!(::Memory{UInt8}, ::Int64)
The function `resize!` exists, but no method is defined for this combination of argument types.
Closest candidates are:
  resize!(::BitVector, ::Integer)
   @ Base bitarray.jl:814
  resize!(::Vector, ::Integer)
   @ Base array.jl:1447
Stacktrace:
 [1] display_dict(p::Plot{Vector{GenericTrace{Dict{Symbol, Any}}}, Layout{Dict{Symbol, Any}}, Vector{PlotlyFrame}})
   @ PlotlyBase C:\Users\empet\.julia\packages\PlotlyBase\4NWbR\src\PlotlyBase.jl:165
 [2] #invokelatest#2
   @ .\essentials.jl:1055 [inlined]
 [3] invokelatest
   @ .\essentials.jl:1052 [inlined]
 [4] execute_request(socket::ZMQ.Socket, msg::IJulia.Msg)
   @ IJulia C:\Users\empet\.julia\packages\IJulia\dR0lE\src\execute_request.jl:119
 [5] #invokelatest#2
   @ .\essentials.jl:1055 [inlined]
 [6] invokelatest
   @ .\essentials.jl:1052 [inlined]
 [7] eventloop(socket::ZMQ.Socket)
   @ IJulia C:\Users\empet\.julia\packages\IJulia\dR0lE\src\eventloop.jl:8
 [8] (::IJulia.var"#15#18")()
   @ IJulia C:\Users\empet\.julia\packages\IJulia\dR0lE\src\eventloop.jl:38
@jd-foster
Copy link
Collaborator

Seems related to #489

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

No branches or pull requests

2 participants