Closed j-fu closed 3 years ago
Sorry, 0.3
is a breaking release, since it now works a bit different.
I added a Page
mode to JSServe for Pluto, which still needs full documentation etc.
The very first cell in your notebook now needs to be:
begin
using JSServe
port = 8449 # the port you want
JSServe.JSSERVE_CONFIGURATION.listen_port[] = port
JSServe.JSSERVE_CONFIGURATION.external_url[] = "http://localhost:$(port)"
JSServe.JSSERVE_CONFIGURATION.content_delivery_url[] = "http://localhost:$(port)"
JSServe.Page() # needs to get displayed by Pluto
end
The docs + UI still needs to be cleaned up and then I'll prepare docs + blogpost.
Ah now this works. Great!
Also mixing 2D and 3D + updating Nodes works:
https://gist.github.com/j-fu/efe75cc057d4d8643464b196bbce0eb7
Seems I am running into #805 when I run the rendering cell a second time.
I wonder about the CPU usage: I see 300% during interaction which is not the case with GLMakie.
You should try to use this for sliders:
n = JSServe.Slider(3:100)
data = map(x-> ..., n) # the slider works just like an observable
Is see, thank you - need to carve out some time for following these recent developments...
Is port 8449 fixed? I tried putting a different number in arbitrarily and it didn't seem to work, but I am not sure if I did the experiment correctly. Seems like it might limit having multiple notebooks open at once if so.
Each notebook needs its own port!
I repeated the experiment, and it is working with other port numbers. So operator error on my part before. However I am getting this warning on the console as I go along:
┌ Warning: session closed and not ready └ @ JSServe ~/.julia/packages/JSServe/a4Ibj/src/session.jl:112
Ah forgot to remove that one...you can ignore that!
It looks like with WLGMakie 0.3.2 and Julia 1.5.3, the work-around no longer works around the problem. I am back to nothing being displayed again.
@SimonDanisch Any idea what I can do for the low DPI?
Hi thanks for all the work you are putting into this! I just tried out the new WGLMakie, it so far is not yet perfect...
Thus is what I am seeing in pluto:
Here is the notebook with the MWE
https://gist.github.com/j-fu/6213665e0c0043e8e97bb2e3b4292e5a
... the single scatter plot is messed up, and it is not clear what to show for a scene...
EDIT: @fonsp