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

Dependency injection #4

Closed
4 of 5 tasks
shashi opened this issue Feb 1, 2017 · 1 comment
Closed
4 of 5 tasks

Dependency injection #4

shashi opened this issue Feb 1, 2017 · 1 comment
Milestone

Comments

@shashi
Copy link
Member

shashi commented Feb 1, 2017

We need to be able to load JavaScript files from Julia packages and the web, as and when required by components being displayed. Components provided by packages should be able to do this on their own. For example, if I'm using a PlotlyJS plot in my app, I should not worry about loading Plotly.js, PlotlyJS should ask WebIO to do that where it is invoked.

  • Get /pkg/PKG/ to serve assets directory in Mux and Blink
  • Create a Jupyter server plugin to allow serving asset files at /pkg/PKG
  • decide AMD based dynamic loader script to use (options: LABjs, RaveJS, RequireJS)
  • Make node creation asynchronous (promise-based or callback based)
  • Create life cycle events during node creation on node dependency satisfaction, ready connection and creation completed.
@shashi shashi added this to the v0.1.0 milestone Feb 1, 2017
@shashi
Copy link
Member Author

shashi commented Feb 12, 2017

I have mostly got this working. Will track the Jupyter requirement in #9

This is feeling pretty good. Check out the p5.js example: https://github.com/shashi/WebIO.jl/blob/master/examples/p5.jl which is a port of this https://p5js.org/examples/color-hue.html Guaranteed to have loaded p5js before rendering, and works on Atom, Blink and Mux 💃

@shashi shashi closed this as completed Feb 12, 2017
pfitzseb pushed a commit that referenced this issue May 12, 2021
WIP: Expand to a `string(...)` call with interpolated expressions
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

1 participant