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

jupyter lab?

Open zahachtah opened this issue 7 years ago • 2 comments
trafficstars

I am using jupyter lab now since it seems to be working very well and is the anticipated next gen jupyter as far as i can tell. However, I don't get the output using that. apparently One has do enable javascript somehow through extentions or I guess it can be built in the package? not sure.

Have you had a look at this? I know plotlyjs.jl has similar issues

zahachtah avatar Sep 12 '18 11:09 zahachtah

Thanks for checking out this library! I just pushed a display re-write using WebIO to master, but I haven't tagged a release yet. Jupyter Notebook definitely works, but I haven't tried lab yet.

Allegedly, lab should work if you use the instructions at WebIO to install the plugin. The instructions aren't that clear to me though whether you install this from inside Julia or what:

cd(Pkg.dir("WebIO", "assets"))
;jupyter labextension install webio
;jupyter labextension enable webio/jupyterlab_entry

https://github.com/JuliaGizmos/WebIO.jl#getting-started

If you try this out, please let me know what you find.

randyzwitch avatar Sep 12 '18 13:09 randyzwitch

My brief test shows that it does not currently work, but hopefully I can figure out the issue soon.

KERNEL EXCEPTION
KeyError: key "command" not found

Stacktrace:
 [1] getindex at ./dict.jl:478 [inlined]
 [2] dispatch(::WebIO.IJuliaConnection, ::Dict{String,Any}) at /home/randyzwitch/.julia/packages/WebIO/z5EcW/src/connection.jl:22
 [3] (::getfield(WebIO, Symbol("##73#74")){WebIO.IJuliaConnection})(::IJulia.Msg) at /home/randyzwitch/.julia/packages/WebIO/z5EcW/src/providers/ijulia.jl:56
 [4] comm_msg(::ZMQ.Socket, ::IJulia.Msg) at /home/randyzwitch/.julia/packages/IJulia/6sod5/src/comm_manager.jl:134
 [5] #invokelatest#1 at ./essentials.jl:691 [inlined]
 [6] invokelatest at ./essentials.jl:690 [inlined]
 [7] eventloop(::ZMQ.Socket) at /home/randyzwitch/.julia/packages/IJulia/6sod5/src/eventloop.jl:8
 [8] (::getfield(IJulia, Symbol("##12#15")))() at ./task.jl:262

randyzwitch avatar Sep 13 '18 15:09 randyzwitch