-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Bokeh npm install #5125
Comments
ping @mattpap do you have any experience / ideas? To be honest, I think the npm package gets little to possibly no use at all, so it would not surprise me if there are issues with it. But I'm not sure what would be needed to fix. Basically we build a |
Yeah, I'm hoping for a commonjs/ES6 export that could be loaded if used with webpack or browserify.
|
I have suggestions for the build output, but I'm not sure what context this is currently used in. This built file looks like a browser dist rather than an npm package. |
If you know how to do that I'm open to suggestion :) @mattpap might know how to accomplish this |
That's exactly what it is. As I said AFAIK you may be the first person to try and use the npmjs package. |
We upload the dist to CDN and also ship it with the python library. We don't use the npm package for anything so changing it however seems fair game. |
According to #614 this is a solved issue. Anyway, |
We can create a different entry point for npm package, that would include everything (core, widgets, APIs). |
If anyone besides me wants to play with this, I couldn't find a way to actually build a npm package, just I can publish one, so I do this:
to test the package. Installing from inside |
Our tests use a custom module loader, so that's why |
@rgbkrk can you take a look and comment? |
I'm trying to load Bokeh in an electron context, which means I'm in node with a browser context. However, the object that
require('bokehjs')
returns has no methods (and isn't itself a function). Was there a packaging issue with the npm release or should I be requiring this differently?The text was updated successfully, but these errors were encountered: