JuliaGizmos / Interact.jl

Interactive widgets to play with your Julia code
Other
520 stars 75 forks source link

Widget not render in jupyterlab #380

Open hanbinlu opened 3 years ago

hanbinlu commented 3 years ago

Hi,

Thank you for the nice package. I've tried to set up for usage in jupyterlab. But somehow the widget does not render in my notebook in jupyterlab. For the simple example suggested

@manipulate for n in 1:10
    n
end

It return an object of Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Node{WebIO.DOM}(WebIO.DOM(:html, :div), Any[Scope(Node{WebIO.DOM}(WebIO.DOM(:html, :div)...

image

I think my WebIO should work. Actually when I put the return object to the node function it renders (I check couple other widget too, they behave the same way that require to wrap into node function. Do I miss some setting?

image
PKUFlyingPig commented 3 years ago

Did you solve this problem ? I also come across this problem. I don't know if it is because there are two Jupyter notebooks on my laptop, one for the default and one for the Conda, in the README it says that we can use WebIO.install_jupyter_nbextension([jupyter]) to specify the path to the Jupyter we want, but I don't know how to correctly use this command.

image
hanbinlu commented 3 years ago

I think you are different problem to me. But WebIO.install_jupyter_nbextensiontake Cmd as parameter, so it should be `xxxx`

WebIO.install_jupyter_nbextension(`jupyter path`)