PlutBoard.jl is still in an early state.
Generate your package
$> julia -e 'using Pkg; Pkg.generate("YOUR_PACKAGE_NAME")' && cd YOUR_PACKAGE_NAME
Add PlutoBoard and set it up
YOUR_PACKAGE_NAME$> julia --project -e 'using Pkg; Pkg.add(url="https://github.com/UniStuttgart-IKR/PlutoBoard.jl"); using PlutoBoard; PlutoBoard.setup()'
Run the notebook
YOUR_PACKAGE_NAME$> julia --project -e 'using Pluto; Pluto.run(notebook="PlutoBoardNotebook.jl")'
There is some hierarchy:
main
insrc/Main.jl
gets called in the beginning, so use this as julia entry point- functions that should be callable from js need to go into
src/Functions.jl
- all javascript files in
static/javascript/
are getting executed, thoughstatic/javascript/javascript.js
is the last one, so use this as js entry point
There is a simple example in src/Functions.jl
, src/static/index.html
and src/static/javascript/javascript.js
about calling a julia function from javascript with callbacks.