I’m thrilled to see that the plotly-toolpanel is now also openly available, that’s great news!
Unfortunately, I have not been able to package it, owing to my unfamiliarity with the required toolchain.
Here’s what I tried:
- Check out plotly-toolpanel into a new directory:
git clone https://github.com/plotly/plotly-toolpanel.git
- Change into the
src/js
directory:cd plotly-toolpanel/js
- Try to run
browserify
usingbrowserify dependencies.js --standalone toolpanel -o toolpanel-dependencies-bundle.js
- Whenever
browserify
complains about a missing dependency, install it:
a.npm install jquery
b.npm install jquery-ui
c.npm install bootstrap
d.npm install boostrap-select
e.npm install jquery-ui-spinner
This is the first roadblock:npm
complains that'jquery-ui-spinner' is not in the npm registry.
I tried to sidestep the problem by commenting out therequire('jquery-ui-spinner');
line
f.npm install tipsy
g.npm install spectrum
- After all the requirements have been
npm install
ed, try to runbrowserify dependencies.js --standalone toolpanel -o toolpanel-dependencies-bundle.js
again. However, I now get the complaintError: Cannot find module 'tipsy'
, even though I have installed it.
Could someone with more experience in these matters give me a hint on how to solve this?