ian-r-rose/jupyterlab-bokeh-server

Install Fails

quasiben opened this issue · 10 comments

I am new to jupyterlab development, so my apologies for this naive attempt. I tried installing the repository by running:

jlpm install
jlpm run build
jupyter labextension install .

and I get a conflict:

npm notice === Tarball Contents ===                                                                                                                                                                                                                                      [0/558]
npm notice 1.2kB package.json
npm notice 3.2kB README.md
npm notice 2.5kB lib/dashboard.d.ts
npm notice 4.5kB lib/dashboard.js
npm notice 248B  lib/index.d.ts
npm notice 2.4kB lib/index.js
npm notice 205B  style/chart-dark.svg
npm notice 205B  style/chart-light.svg
npm notice 1.9kB style/index.css
npm notice === Tarball Details ===
npm notice name:          jupyterlab-bokeh-server
npm notice version:       0.1.0
npm notice filename:      jupyterlab-bokeh-server-0.1.0.tgz
npm notice package size:  5.5 kB
npm notice unpacked size: 16.4 kB
npm notice shasum:        4004219f11524c192c93fb891ef5d1f23aa14b46
npm notice integrity:     sha512-euToK2rfRTBbW[...]xE60ayuZWQIuQ==
npm notice total files:   9
npm notice
jupyterlab-bokeh-server-0.1.0.tgz

Errored, use --debug for full output:
ValueError:
"jupyterlab-bokeh-server@0.1.0" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab            Extension              Package
>=3.0.0-alpha.6 <4.0.03.0.0-alpha.3          @jupyterlab/coreutils

I installed Jupyterlab 1.0 (from source) and I have no other extensions installed:

(lab-1.0) bzaitlen@dgx16:~/GitRepos/jupyterlab-bokeh-server$ jupyter labextension list
JupyterLab v1.0.0a3
No installed extensions

@ian-r-rose if you're able to push @quasiben along I would appreciate it. I suspect that @quasiben is able to finish out documenting the build process if you're able to unstick him occasionally.

Yes, I can help get the docs/install story on this in better shape. Probably not until tomorrow or Wednesday, though...

@quasiben, briefly, you should be able to get this working with 1.0a3 by updating these package versions to -alpha.6:

"@jupyterlab/application": "^1.0.0-alpha.3",
"@jupyterlab/apputils": "^1.0.0-alpha.3",
"@jupyterlab/coreutils": "3.0.0-alpha.3",

I'll update the repo with these and some better docs as soon as I get the chance

I was able to install. Thank you! However, nothing renders in the My Cool Plots Pane

relevant js console errors:

Failed to load resource: the server responded with a status of 404 (Not Found)
lab:1 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
6Blocked script execution in 'blob:<URL>' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c:1 Blocked script execution in 'blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c:1 Blocked script execution in 'blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c:1 Blocked script execution in 'blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c:1 Blocked script execution in 'blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c:1 Blocked script execution in 'blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c:1 Blocked script execution in 'blob:http://10.31.241.45:8889/3a49f900-f154-4c2e-8ca6-f061f2db8b2c' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

You may need to install and enable the server component (I swear I'll get docs for this up imminently!)

pip install -e .

jupyter serverextension enable --sys-prefix jupyterlab_bokeh_server

Edit: this second step was an error and should not be necessary.

Oh! No rush on getting docs up. I'm fully aware you are quite busy. Just keeping things updated on my end

You comment above let me install! And things worked up until I also installed dask-labextension. Maybe we could sync up tomorrow or friday ?

@quasiben I've just updated some of the docs in the README.md, can you see if they make sense and work for you?

README makes sense and everything worked out of the box! Thanks @ian-r-rose