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

Getting package to work in binder notebook (preliminary) #68

Closed
djsegal opened this issue Mar 17, 2018 · 8 comments
Closed

Getting package to work in binder notebook (preliminary) #68

djsegal opened this issue Mar 17, 2018 · 8 comments

Comments

@djsegal
Copy link
Contributor

djsegal commented Mar 17, 2018

example binder project:

corresponding binder:


i tried to make the simplest binder package, but couldn't get webio to work on it.

could you take a look? don't know who to ask :(


screen shot 2018-03-17 at 3 08 57 am

@shashi
Copy link
Member

shashi commented Mar 17, 2018

So it needs a server plugin that can serve assets from /pkg/ ... See https://github.com/JuliaGizmos/WebIO.jl/blob/master/deps/jlstaticserve.py

I guess the trick is getting it to install in binder

@djsegal
Copy link
Contributor Author

djsegal commented Mar 17, 2018

Do you see anything obviously wrong with this file:

Or is that not related to this?

@shashi
Copy link
Member

shashi commented Mar 17, 2018

Looks fine as long as

/srv/julia/pkg/ is in Julia's LOAD_PATH.

I guess the thing to check is whether binder is picking up the config file that WebIO.build() injects into.

Also it might have something to do with #58

@djsegal
Copy link
Contributor Author

djsegal commented Mar 18, 2018

@shashi what does it mean if the yarn.js install fails:

error webpack@4.1.1: The engine "node" is incompatible with this module. Expected version ">=6.11.5".


screen shot 2018-03-18 at 7 20 45 pm


update: It looks like webpack@4.1.1 requires nodejs@6.11.5, but binder only has nodejs@6.11.4

// Currently trying to resolve how to update nodejs

@shashi
Copy link
Member

shashi commented Mar 19, 2018

It seems like that webpack version needs a certain node version which does not exist on binder.

In the interest of making this work on many systems, I'm easy about which version of webpack we insist on as long as it is able to successfully build the files we need.

However I would have thought WebIO would use the node binary installed by NodeJS.jl. Is that not the case?

@djsegal
Copy link
Contributor Author

djsegal commented Mar 19, 2018

NodeJS.jl is not REQUIREd by WebIO.jl

That will be the next thing I try out

@shashi
Copy link
Member

shashi commented Mar 19, 2018

Actually to install server plugin one just needs to run build.

You're trying a Dev install which is strictly not needed

@djsegal
Copy link
Contributor Author

djsegal commented Mar 19, 2018

I'm pretty sure it says that web_comm doesn't exist then

// let me try in a couple hours


edit: what exactly do I need to run?

I don't call either of these things:

WebIO.devsetup() # run once
WebIO.bundlejs() # run every time you update a file

@djsegal djsegal changed the title Getting package to work in binder notebook Getting package to work in binder notebook (preliminary) Mar 20, 2018
@djsegal djsegal closed this as completed Mar 20, 2018
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

2 participants